Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Issue 239543012: The User Manager should be backed by a special profile, not the guest one. (Closed)

Created:
6 years, 8 months ago by noms (inactive)
Modified:
6 years, 8 months ago
Reviewers:
rpetterson, Nico
CC:
chromium-reviews, tfarina, rginda+watch_chromium.org, yoshiki+watch_chromium.org
Visibility:
Public.

Description

The User Manager should be backed by a special profile, not the guest one. We've been using the generic guest profile to also back the User Manager widget. The guest profile recently became an off-the-record profile which means that when the last guest browser window is closed, the ProfileDestroyer is going to start cleaning all the OTR stuff. This will then crash if the User Manager is open because we now have a dangling renderer. The solution is to create a special profile only to be used by the User Manager. This profile doesn't get deleted, is not added to the ProfileInfoCache, and can't be accessed through the UI. BUG=363565

Patch Set 1 #

Total comments: 2

Patch Set 2 : nico's comment + fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -59 lines) Patch
M chrome/browser/app_controller_mac_browsertest.mm View 1 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 1 chunk +8 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_window.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_window.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/user_manager_mac.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/user_manager_mac.mm View 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/user_manager_mac_unittest.mm View 1 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/profiles/user_manager_view.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/profiles/user_manager_view.cc View 3 chunks +8 lines, -9 lines 0 comments Download
M chrome/common/chrome_constants.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/chrome_constants.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/base/testing_profile_manager.h View 1 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/test/base/testing_profile_manager.cc View 1 2 chunks +25 lines, -9 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
noms (inactive)
6 years, 8 months ago (2014-04-16 17:43:02 UTC) #1
noms (inactive)
+ Nico for rubber stamp on chrome/browser/ui and chrome/common. The UI changes are just a ...
6 years, 8 months ago (2014-04-16 17:46:08 UTC) #2
Nico
lgtm https://codereview.chromium.org/239543012/diff/1/chrome/common/chrome_constants.h File chrome/common/chrome_constants.h (right): https://codereview.chromium.org/239543012/diff/1/chrome/common/chrome_constants.h#newcode52 chrome/common/chrome_constants.h:52: extern const base::FilePath::CharType kUserManagerProfileDir[]; Any reason these aren't ...
6 years, 8 months ago (2014-04-16 18:03:15 UTC) #3
noms (inactive)
I've also updated the tests, and added a new function to the TestingProfileManager to deal ...
6 years, 8 months ago (2014-04-16 18:36:02 UTC) #4
noms (inactive)
Rachel: ping! :)
6 years, 8 months ago (2014-04-17 17:18:02 UTC) #5
rpetterson
lgtm
6 years, 8 months ago (2014-04-17 17:49:21 UTC) #6
noms (inactive)
The CQ bit was checked by noms@chromium.org
6 years, 8 months ago (2014-04-17 17:51:45 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noms@chromium.org/239543012/2
6 years, 8 months ago (2014-04-17 17:52:37 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-17 19:00:37 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 8 months ago (2014-04-17 19:00:37 UTC) #10
noms (inactive)
6 years, 8 months ago (2014-04-22 17:08:17 UTC) #11
I'm closing this CL without landing it, because it turns out more things that
aren't the user manager are made grumpy by the Guest profile deleting itself
when the last browser closes, so the fix needs to be done in the Guest profile
instead.

Thanks for the review though! :(

Powered by Google App Engine
This is Rietveld 408576698