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

Issue 585653002: After locking a profile and showing the User Manager, make Guest the active profile (Closed)

Created:
6 years, 3 months ago by noms (inactive)
Modified:
6 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

After locking a profile and showing the User Manager, make Guest the active profile This is particularly important on Mac, where unless we do this the Bookmarks/History menu bar items will reflect the last active profile (which has now been locked). On Windows this is a nice to have and to be consistent. Overall this adds an extra layer of security that you won't accidentally open a locked profile's window. BUG=412952 Committed: https://crrev.com/dd5b6a619317f1e93348a71e70062275bda8e8dc Cr-Commit-Position: refs/heads/master@{#296187}

Patch Set 1 : #

Patch Set 2 : rebase #

Total comments: 6

Patch Set 3 : review comments + rebase #

Total comments: 2

Patch Set 4 : s/check/dcheck #

Patch Set 5 : don't do anything if you're already a guest profile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -43 lines) Patch
M chrome/browser/app_controller_mac.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 chunks +34 lines, -39 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profiles_state.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profiles_state.cc View 1 2 3 4 3 chunks +27 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/user_manager_mac.mm View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/user_manager_view.cc View 3 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
noms (inactive)
Hi Alexei, Given that we chatted the most about it, would you mind reviewing this ...
6 years, 3 months ago (2014-09-18 21:31:26 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/585653002/diff/40001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/585653002/diff/40001/chrome/browser/profiles/profiles_state.cc#newcode164 chrome/browser/profiles/profiles_state.cc:164: ProfileInfoCache& cache = profile_manager->GetProfileInfoCache(); Nit: Const ref or ptr, ...
6 years, 3 months ago (2014-09-19 15:33:37 UTC) #4
noms (inactive)
Addressed comments + made some extra things in the ProfileInfoCache const, to be able to ...
6 years, 3 months ago (2014-09-22 15:39:46 UTC) #6
Alexei Svitkine (slow)
LGTM https://codereview.chromium.org/585653002/diff/80001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/585653002/diff/80001/chrome/browser/profiles/profiles_state.cc#newcode172 chrome/browser/profiles/profiles_state.cc:172: CHECK(guest_profile); Nit: DCHECK(). If it's NULL, it will ...
6 years, 3 months ago (2014-09-22 16:58:00 UTC) #7
noms (inactive)
Hi Scott, Could you please do an OWNERS review for c/b/app_controller_mac* (Alexei already reviewed it) ...
6 years, 3 months ago (2014-09-22 17:30:06 UTC) #9
sky
LGTM
6 years, 3 months ago (2014-09-22 20:44:20 UTC) #10
noms (inactive)
https://codereview.chromium.org/585653002/diff/80001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/585653002/diff/80001/chrome/browser/profiles/profiles_state.cc#newcode172 chrome/browser/profiles/profiles_state.cc:172: CHECK(guest_profile); On 2014/09/22 16:58:00, Alexei Svitkine wrote: > Nit: ...
6 years, 3 months ago (2014-09-22 21:41:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/585653002/100001
6 years, 3 months ago (2014-09-22 21:43:17 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/16330)
6 years, 3 months ago (2014-09-22 23:17:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/585653002/120001
6 years, 3 months ago (2014-09-23 14:27:28 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:120001) as f2cadec73f73415af6a28023af6c8142834b7d26
6 years, 3 months ago (2014-09-23 15:20:27 UTC) #20
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 15:21:03 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/dd5b6a619317f1e93348a71e70062275bda8e8dc
Cr-Commit-Position: refs/heads/master@{#296187}

Powered by Google App Engine
This is Rietveld 408576698