Write test and add CHECKs to ensure we don't attempt to load profiles too eary |
|||||
Issue description671579 seems to be the result of some code trying to load profiles before we've gotten to the point where we should load profiles. Specifically we're showing a dialog saying the profile is in use and because displaying the dialog is a nested message loop we process a task that ends up loading the profile and we're not in a very weird state. We should have tests to exercise this path. An alternative is to move showing of dialogs to a separate thread/process so that we can block main and be sure we do not run a nested message loop and pump random tasks we don't really want to. Without tests we're likely to regress this again and end up with weird crashes. I'm making this a P1 and randomly picking an OWNER of profiles (sorry anthony).
,
Dec 7 2016
I think it would be best if we ensure no profiles are created after the 'profile already in use' dialog is shown. To add a CHECK we would need to add a global indicating it's safe to create profiles, maybe on browser_process, but that many not be necessary. Probably easiest to show dialog is modify startup to force it being shown.
,
Dec 8 2016
Idea - add a flag to ProfileManager (which is owned by browser_process) that declares whether Profiles are allowed to be created. Defaults to false, only gets set to true by the appropriate StartupBrowser code. Add a CHECK to ProfileManager.CreateProfile code for the value of the flag.
,
Dec 8 2016
,
Apr 18 2017
+msarda since I no longer work on Identity.
,
May 17 2017
Lowering its priority as I do not have the bandwidth to work on it. Feel free to pick this bug up if you know the profiles code and believe this bug is higher priority.
,
Oct 15
I do not know this code well, so I am not certain what needs to be done here. Moving to available - feel free to pick it up if you have cycles to work on it. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by anthonyvd@chromium.org
, Dec 7 2016Status: Assigned (was: Untriaged)