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

Issue 2918203002: cros: Fix loading user profile w/o UserSessionManager (Closed)

Created:
3 years, 6 months ago by xiyuan
Modified:
3 years, 6 months ago
Reviewers:
Nico, emaxx, msarda
CC:
chromium-reviews, rginda+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Fix loading user profile w/o UserSessionManager The fallback logic in GetActiveUserOrOffTheRecordProfileFromPath should cover the case when the user profile loading has not started. So that it does not creates/loads user profile accidentally without going through UserSessionManager. BUG=728683, 718734 TEST=ProfileManagerTest.UserProfileLoading Review-Url: https://codereview.chromium.org/2918203002 Cr-Commit-Position: refs/heads/master@{#478735} Committed: https://chromium.googlesource.com/chromium/src/+/41d32a3c1bd0153aa660378b3b2a2c59e25c5f31

Patch Set 1 #

Patch Set 2 : fix tests #

Total comments: 8

Patch Set 3 : for #2 comments #

Patch Set 4 : fix tests, round 2 #

Total comments: 10

Patch Set 5 : rebase #

Patch Set 6 : for #4 nits #

Total comments: 4

Patch Set 7 : fix nits #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -59 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc View 1 2 3 4 5 11 chunks +24 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/accessibility/magnification_manager_browsertest.cc View 1 2 11 chunks +23 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_manager_browsertest.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_manager/path_util_unittest.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/crash_restore_browsertest.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 chunks +14 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/users/user_manager_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.h View 1 2 3 4 5 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.cc View 1 2 4 chunks +12 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/status/data_promo_notification_unittest.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/download/notification/download_notification_browsertest.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/braille_display_private/braille_display_private_apitest.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 3 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +49 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_new_window_client_browsertest.cc View 1 2 3 4 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 54 (38 generated)
xiyuan
WDYT?
3 years, 6 months ago (2017-06-02 20:27:38 UTC) #4
msarda
I think this is subtle change and I am afraid I cannot evaluate the risk ...
3 years, 6 months ago (2017-06-05 16:41:47 UTC) #7
xiyuan
On 2017/06/05 16:41:47, msarda wrote: > I think this is subtle change and I am ...
3 years, 6 months ago (2017-06-05 17:05:32 UTC) #8
msarda
OK, thank you for the explanation. I'll wait for your next patch for review then.
3 years, 6 months ago (2017-06-05 17:43:41 UTC) #9
emaxx
https://codereview.chromium.org/2918203002/diff/40001/chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc File chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc (right): https://codereview.chromium.org/2918203002/diff/40001/chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc#newcode165 chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc:165: Profile* profile = g_browser_process->profile_manager()->GetProfile( This construction - loading the ...
3 years, 6 months ago (2017-06-06 12:11:23 UTC) #19
xiyuan
https://codereview.chromium.org/2918203002/diff/40001/chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc File chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc (right): https://codereview.chromium.org/2918203002/diff/40001/chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc#newcode165 chrome/browser/chromeos/accessibility/accessibility_manager_browsertest.cc:165: Profile* profile = g_browser_process->profile_manager()->GetProfile( On 2017/06/06 12:11:23, emaxx wrote: ...
3 years, 6 months ago (2017-06-06 20:29:39 UTC) #21
xiyuan
emm, PS3 causes some new test failures. I am in middle of a bisect and ...
3 years, 6 months ago (2017-06-06 22:39:57 UTC) #28
xiyuan
Bots are green now. PTAL. Thanks.
3 years, 6 months ago (2017-06-08 19:24:01 UTC) #33
emaxx
LGTM (but admitting that I wasn't able to fully understand all the changes made in ...
3 years, 6 months ago (2017-06-08 19:43:54 UTC) #34
xiyuan
Most of the test changes are adding an explicit user profile load. The exception is ...
3 years, 6 months ago (2017-06-08 20:30:41 UTC) #37
msarda
LGTM for chrome/browser/profiles/* https://codereview.chromium.org/2918203002/diff/140001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/2918203002/diff/140001/chrome/browser/profiles/profile_manager.cc#newcode1332 chrome/browser/profiles/profile_manager.cc:1332: // Fallback to default off-the-record profile, ...
3 years, 6 months ago (2017-06-08 23:49:19 UTC) #40
xiyuan
https://codereview.chromium.org/2918203002/diff/140001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/2918203002/diff/140001/chrome/browser/profiles/profile_manager.cc#newcode1332 chrome/browser/profiles/profile_manager.cc:1332: // Fallback to default off-the-record profile, if user profile ...
3 years, 6 months ago (2017-06-12 15:32:54 UTC) #41
xiyuan
thakis@, could I get an owner approval for chrome/browser/chrome_browser_main.cc ? Replace ProfileManager::GetActiveUserProfile() with a new ...
3 years, 6 months ago (2017-06-12 15:45:46 UTC) #43
Nico
lgtm
3 years, 6 months ago (2017-06-12 19:52:53 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2918203002/180001
3 years, 6 months ago (2017-06-12 20:00:37 UTC) #51
commit-bot: I haz the power
3 years, 6 months ago (2017-06-12 20:06:29 UTC) #54
Message was sent while issue was closed.
Committed patchset #8 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/41d32a3c1bd0153aa660378b3b2a...

Powered by Google App Engine
This is Rietveld 408576698