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

Issue 885493005: Setting Guest last-active for the User Manager doesn't create the Guest. (Closed)

Created:
5 years, 10 months ago by Mike Lerman
Modified:
5 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Setting Guest last-active for the User Manager doesn't create the Guest. This is a problem created by https://codereview.chromium.org/847733005. BUG=445036 TEST=Lock a Profile, and the User Manager opens properly. Close all other browsers then close the User Manager, ensure Chrome's completely shut down, and re-open Chrome. The User Manager opens straight away. Committed: https://crrev.com/3996e6245d6832ba0c29da91041b83a8e34a48e9 Cr-Commit-Position: refs/heads/master@{#313827}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Because mac #

Patch Set 3 : Mac UserManager asyncly creates Guest for Controller #

Total comments: 8

Patch Set 4 : Comments d'alexei #

Patch Set 5 : noms nits #

Patch Set 6 : Make the code tests-robust #

Patch Set 7 : Fix the test not the code #

Total comments: 2

Patch Set 8 : Oh noes, the braces #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -24 lines) Patch
M chrome/browser/profiles/profiles_state.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profiles_state.cc View 1 2 3 4 6 7 1 chunk +13 lines, -16 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/user_manager_mac.mm View 1 2 3 2 chunks +22 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/user_manager_mac_unittest.mm View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
Mike Lerman
More reviews for noms! You deserve agif, a super-attack cat! http://i80.photobucket.com/albums/j164/sallypina/Animated-AttackCat.gif
5 years, 10 months ago (2015-01-28 18:01:36 UTC) #2
noms (inactive)
https://codereview.chromium.org/885493005/diff/1/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/885493005/diff/1/chrome/browser/profiles/profiles_state.cc#newcode190 chrome/browser/profiles/profiles_state.cc:190: active_profile_path.BaseName().MaybeAsASCII()); Shouldn't this be guest_profile_path or something? active_profile_path is ...
5 years, 10 months ago (2015-01-28 19:17:19 UTC) #3
Mike Lerman
https://codereview.chromium.org/885493005/diff/1/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/885493005/diff/1/chrome/browser/profiles/profiles_state.cc#newcode190 chrome/browser/profiles/profiles_state.cc:190: active_profile_path.BaseName().MaybeAsASCII()); On 2015/01/28 19:17:19, Monica Dinculescu wrote: > Shouldn't ...
5 years, 10 months ago (2015-01-28 20:19:45 UTC) #4
Mike Lerman
Adding Alexei to review the cocoa code. Thanks!
5 years, 10 months ago (2015-01-28 21:06:52 UTC) #6
Alexei Svitkine (slow)
https://codereview.chromium.org/885493005/diff/40001/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm File chrome/browser/ui/cocoa/profiles/user_manager_mac.mm (right): https://codereview.chromium.org/885493005/diff/40001/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm#newcode28 chrome/browser/ui/cocoa/profiles/user_manager_mac.mm:28: void ChangeAppControllerForProfile(Profile* profile, Add a comment. https://codereview.chromium.org/885493005/diff/40001/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm#newcode37 chrome/browser/ui/cocoa/profiles/user_manager_mac.mm:37: } ...
5 years, 10 months ago (2015-01-28 21:12:32 UTC) #7
Mike Lerman
https://codereview.chromium.org/885493005/diff/40001/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm File chrome/browser/ui/cocoa/profiles/user_manager_mac.mm (right): https://codereview.chromium.org/885493005/diff/40001/chrome/browser/ui/cocoa/profiles/user_manager_mac.mm#newcode28 chrome/browser/ui/cocoa/profiles/user_manager_mac.mm:28: void ChangeAppControllerForProfile(Profile* profile, On 2015/01/28 21:12:32, Alexei Svitkine wrote: ...
5 years, 10 months ago (2015-01-29 14:01:58 UTC) #8
Alexei Svitkine (slow)
lgtm
5 years, 10 months ago (2015-01-29 16:10:48 UTC) #9
noms (inactive)
profiles lgtm % nits https://codereview.chromium.org/885493005/diff/40001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/885493005/diff/40001/chrome/browser/profiles/profiles_state.cc#newcode179 chrome/browser/profiles/profiles_state.cc:179: if (active_profile_path == ProfileManager::GetGuestProfilePath()) nit: ...
5 years, 10 months ago (2015-01-29 16:15:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/885493005/80001
5 years, 10 months ago (2015-01-29 16:47:57 UTC) #12
Mike Lerman
https://codereview.chromium.org/885493005/diff/40001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/885493005/diff/40001/chrome/browser/profiles/profiles_state.cc#newcode179 chrome/browser/profiles/profiles_state.cc:179: if (active_profile_path == ProfileManager::GetGuestProfilePath()) On 2015/01/29 16:15:13, Monica Dinculescu ...
5 years, 10 months ago (2015-01-29 16:51:40 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/28524)
5 years, 10 months ago (2015-01-29 18:31:29 UTC) #15
Mike Lerman
Noms, can you glance at changeset #6? had to make a test not fail.
5 years, 10 months ago (2015-01-29 18:56:07 UTC) #16
noms (inactive)
On 2015/01/29 18:56:07, Mike Lerman wrote: > Noms, can you glance at changeset #6? had ...
5 years, 10 months ago (2015-01-29 19:06:10 UTC) #17
Mike Lerman
On 2015/01/29 19:06:10, Monica Dinculescu wrote: > On 2015/01/29 18:56:07, Mike Lerman wrote: > > ...
5 years, 10 months ago (2015-01-29 19:45:27 UTC) #18
Mike Lerman
New patchset, the test doesn't fail anymore, and more nicely :) SG?
5 years, 10 months ago (2015-01-29 22:16:08 UTC) #19
noms (inactive)
lgtm (there's a nit. sorry!) https://codereview.chromium.org/885493005/diff/120001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/885493005/diff/120001/chrome/browser/profiles/profiles_state.cc#newcode187 chrome/browser/profiles/profiles_state.cc:187: } nit: noesss, no ...
5 years, 10 months ago (2015-01-29 22:18:11 UTC) #20
Mike Lerman
https://codereview.chromium.org/885493005/diff/120001/chrome/browser/profiles/profiles_state.cc File chrome/browser/profiles/profiles_state.cc (right): https://codereview.chromium.org/885493005/diff/120001/chrome/browser/profiles/profiles_state.cc#newcode187 chrome/browser/profiles/profiles_state.cc:187: } On 2015/01/29 22:18:11, Monica Dinculescu wrote: > nit: ...
5 years, 10 months ago (2015-01-29 22:22:11 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/885493005/140001
5 years, 10 months ago (2015-01-29 22:23:25 UTC) #23
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-01-29 23:33:59 UTC) #24
commit-bot: I haz the power
5 years, 10 months ago (2015-01-29 23:35:23 UTC) #25
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/3996e6245d6832ba0c29da91041b83a8e34a48e9
Cr-Commit-Position: refs/heads/master@{#313827}

Powered by Google App Engine
This is Rietveld 408576698