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

Issue 840673004: The User Manager needs to use profile paths not display names for profile switching (Closed)

Created:
5 years, 11 months ago by noms (inactive)
Modified:
5 years, 11 months ago
Reviewers:
xiyuan, Mike Lerman
CC:
chromium-reviews, dzhioev+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

The User Manager needs to use profile paths not display names for profile switching Since profiles can have duplicate names now, the profile path is the only thing that distinguishes profiles. Also did some cleanup of const refs. BUG=448347 TEST=Start Chrome with --enable-new-avatar-menu. Create two profiles with the same name. You should have no problems switching between the two in the "Switch Person" overlay. Committed: https://crrev.com/e06afd04e8b516f5b5856a706e4b6acf05a2212c Cr-Commit-Position: refs/heads/master@{#312139}

Patch Set 1 #

Total comments: 9

Patch Set 2 : mike nits #

Total comments: 2

Patch Set 3 : fix test #

Patch Set 4 : actually fix test #

Patch Set 5 : fix tests on windows too. paths. sigh. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -50 lines) Patch
M chrome/browser/resources/user_manager/user_manager.js View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.cc View 1 8 chunks +35 lines, -39 lines 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_ui_browsertest.cc View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
M ui/login/account_picker/user_pod_row.js View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
noms (inactive)
Hiya, Duplicate profile names have never worked correctly in the User Manager, and this CL ...
5 years, 11 months ago (2015-01-13 17:53:59 UTC) #2
xiyuan
Would user emails be unique? If so, why not using that instead of profile path?
5 years, 11 months ago (2015-01-13 18:05:25 UTC) #3
Mike Lerman
Xiyuan, you can't the same email address signed in multiple times on the same machine, ...
5 years, 11 months ago (2015-01-13 19:55:42 UTC) #4
noms (inactive)
5 years, 11 months ago (2015-01-13 19:56:31 UTC) #5
xiyuan
On 2015/01/13 19:55:42, Mike Lerman wrote: > Xiyuan, you can't the same email address signed ...
5 years, 11 months ago (2015-01-13 20:19:46 UTC) #6
noms (inactive)
On 2015/01/13 20:19:46, xiyuan wrote: > On 2015/01/13 19:55:42, Mike Lerman wrote: > > Xiyuan, ...
5 years, 11 months ago (2015-01-13 20:20:55 UTC) #7
xiyuan
On 2015/01/13 20:20:55, Monica Dinculescu wrote: > On 2015/01/13 20:19:46, xiyuan wrote: > > On ...
5 years, 11 months ago (2015-01-13 20:23:31 UTC) #8
noms (inactive)
https://codereview.chromium.org/840673004/diff/1/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc File chrome/browser/ui/webui/signin/user_manager_screen_handler.cc (right): https://codereview.chromium.org/840673004/diff/1/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc#newcode115 chrome/browser/ui/webui/signin/user_manager_screen_handler.cc:115: const base::string16& email) { On 2015/01/13 19:55:41, Mike Lerman ...
5 years, 11 months ago (2015-01-13 21:36:42 UTC) #9
Mike Lerman
https://codereview.chromium.org/840673004/diff/1/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc File chrome/browser/ui/webui/signin/user_manager_screen_handler.cc (right): https://codereview.chromium.org/840673004/diff/1/chrome/browser/ui/webui/signin/user_manager_screen_handler.cc#newcode666 chrome/browser/ui/webui/signin/user_manager_screen_handler.cc:666: profile_value->SetString(kKeyProfilePath, profile_path.MaybeAsASCII()); On 2015/01/13 21:36:42, Monica Dinculescu wrote: > ...
5 years, 11 months ago (2015-01-14 01:53:17 UTC) #10
noms (inactive)
https://codereview.chromium.org/840673004/diff/20001/chrome/browser/ui/webui/signin/user_manager_ui_browsertest.cc File chrome/browser/ui/webui/signin/user_manager_ui_browsertest.cc (right): https://codereview.chromium.org/840673004/diff/20001/chrome/browser/ui/webui/signin/user_manager_ui_browsertest.cc#newcode78 chrome/browser/ui/webui/signin/user_manager_ui_browsertest.cc:78: base::string16 profile_name = On 2015/01/14 01:53:17, Mike Lerman wrote: ...
5 years, 11 months ago (2015-01-14 15:17:55 UTC) #11
Mike Lerman
lgtm Please do verify it works with Unicode characters, though, please :)
5 years, 11 months ago (2015-01-14 15:25:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/840673004/40001
5 years, 11 months ago (2015-01-14 15:30:18 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/16271)
5 years, 11 months ago (2015-01-14 17:20:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/840673004/60001
5 years, 11 months ago (2015-01-14 20:38:32 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/16382) Try jobs failed on following ...
5 years, 11 months ago (2015-01-14 23:25:56 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/840673004/60001
5 years, 11 months ago (2015-01-15 23:19:26 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/16359) win_chromium_x64_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/16382)
5 years, 11 months ago (2015-01-15 23:20:48 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/840673004/80001
5 years, 11 months ago (2015-01-19 19:20:01 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-19 20:26:39 UTC) #27
commit-bot: I haz the power
5 years, 11 months ago (2015-01-19 20:27:28 UTC) #28
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e06afd04e8b516f5b5856a706e4b6acf05a2212c
Cr-Commit-Position: refs/heads/master@{#312139}

Powered by Google App Engine
This is Rietveld 408576698