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

Issue 1826903002: updated UI, default profile name, check for existing supervised user before create (Closed)

Created:
4 years, 9 months ago by Moe
Modified:
4 years, 8 months ago
CC:
chromium-reviews, tfarina, michaelpg+watch-md-ui_chromium.org, rginda+watch_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, vitalyp+closure_chromium.org, dbeam+watch-closure_chromium.org, jlklein+watch-closure_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

A follow up CL for MD Use Manager. It reflects the latest mocks, the default profile name, and checking for existing supervised users before creating one with the same name. BUG=563722 Committed: https://crrev.com/1d0bb14e8121201dd393eef0f43834327702815c Cr-Commit-Position: refs/heads/master@{#385787}

Patch Set 1 #

Total comments: 39

Patch Set 2 : Addressed comments #

Total comments: 2

Patch Set 3 : Addressed comments #

Patch Set 4 : Updated browser tests #

Total comments: 8

Patch Set 5 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+918 lines, -225 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 2 chunks +14 lines, -5 lines 0 comments Download
M chrome/browser/resources/md_user_manager/compiled_resources2.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/md_user_manager/control_bar.css View 1 2 3 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/resources/md_user_manager/control_bar.html View 1 2 3 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/resources/md_user_manager/create_profile.css View 1 2 3 4 3 chunks +86 lines, -33 lines 0 comments Download
M chrome/browser/resources/md_user_manager/create_profile.html View 1 2 3 3 chunks +38 lines, -28 lines 0 comments Download
M chrome/browser/resources/md_user_manager/create_profile.js View 1 2 3 4 10 chunks +124 lines, -48 lines 0 comments Download
M chrome/browser/resources/md_user_manager/profile_browser_proxy.js View 1 2 3 3 chunks +27 lines, -5 lines 0 comments Download
M chrome/browser/resources/md_user_manager/supervised_user_learn_more.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_user_manager/user_manager.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_user_manager/user_manager_pages.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/md_user_manager/user_manager_styles.html View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/resources/md_user_manager/user_manager_tutorial.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/md_user_manager_ui.h View 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/signin/md_user_manager_ui.cc View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/signin/signin_create_profile_handler.h View 1 6 chunks +22 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/signin/signin_create_profile_handler.cc View 1 2 3 21 chunks +85 lines, -34 lines 0 comments Download
A chrome/browser/ui/webui/signin/signin_supervised_user_import_handler.h View 1 1 chunk +76 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/signin/signin_supervised_user_import_handler.cc View 1 1 chunk +227 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/webui/md_user_manager/create_profile_tests.js View 1 2 3 8 chunks +147 lines, -39 lines 0 comments Download
M chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js View 1 2 3 4 chunks +33 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (8 generated)
Moe
Hi Roger and Tommy, Please review my changes for the MD User Manager.
4 years, 9 months ago (2016-03-23 20:18:53 UTC) #3
Roger Tawa OOO till Jul 10th
I looked mostly at the C++ code. A few questions below. https://codereview.chromium.org/1826903002/diff/1/chrome/browser/resources/md_user_manager/create_profile.js File chrome/browser/resources/md_user_manager/create_profile.js (right): ...
4 years, 9 months ago (2016-03-24 14:39:05 UTC) #4
tommycli
I mostly looked at the JS/HTML/CSS https://codereview.chromium.org/1826903002/diff/1/chrome/browser/resources/md_user_manager/create_profile.css File chrome/browser/resources/md_user_manager/create_profile.css (right): https://codereview.chromium.org/1826903002/diff/1/chrome/browser/resources/md_user_manager/create_profile.css#newcode18 chrome/browser/resources/md_user_manager/create_profile.css:18: position: absolute; Does ...
4 years, 9 months ago (2016-03-24 19:28:51 UTC) #5
Pam (message me for reviews)
+atanasova, who dealt with some SU name-duplication issues recently Can you point me to screenshots ...
4 years, 9 months ago (2016-03-24 19:53:14 UTC) #7
Moe
Hi, Pam here are the Mocks: https://folio.googleplex.com/chrome-ux-specs-and-sources/Chrome%20Desktop%20Sign%20In/user_manager/preview https://codereview.chromium.org/1826903002/diff/1/chrome/browser/resources/md_user_manager/create_profile.css File chrome/browser/resources/md_user_manager/create_profile.css (right): https://codereview.chromium.org/1826903002/diff/1/chrome/browser/resources/md_user_manager/create_profile.css#newcode18 chrome/browser/resources/md_user_manager/create_profile.css:18: position: absolute; ...
4 years, 9 months ago (2016-03-24 22:07:57 UTC) #8
tommycli
cool the HTML and CSS are pretty much LG by me assuming we resolve the ...
4 years, 9 months ago (2016-03-24 22:18:54 UTC) #9
atanasova
I looked at the mocks and don't see a few user cases related to Supervised ...
4 years, 8 months ago (2016-03-29 07:53:17 UTC) #10
Moe
On 2016/03/29 07:53:17, atanasova wrote: > I looked at the mocks and don't see a ...
4 years, 8 months ago (2016-03-29 19:27:05 UTC) #11
Moe
On 2016/03/29 19:27:05, Moe wrote: > On 2016/03/29 07:53:17, atanasova wrote: > > I looked ...
4 years, 8 months ago (2016-03-29 19:27:53 UTC) #12
Moe
https://codereview.chromium.org/1826903002/diff/1/chrome/browser/resources/md_user_manager/create_profile.js File chrome/browser/resources/md_user_manager/create_profile.js (right): https://codereview.chromium.org/1826903002/diff/1/chrome/browser/resources/md_user_manager/create_profile.js#newcode87 chrome/browser/resources/md_user_manager/create_profile.js:87: signedInUserIndex_: { On 2016/03/24 22:18:54, tommycli (OOO Mar 28 ...
4 years, 8 months ago (2016-03-29 20:51:16 UTC) #13
Roger Tawa OOO till Jul 10th
lgtm
4 years, 8 months ago (2016-04-04 13:46:44 UTC) #14
tommycli
lgtm except that signin_supervised_user_import_handler still needs a unit test. If you're going to add that ...
4 years, 8 months ago (2016-04-04 16:48:45 UTC) #15
Moe
Thank you Tommy! I updated the browser tests in the last patch. Next CL will ...
4 years, 8 months ago (2016-04-04 23:00:16 UTC) #17
Dan Beam
couldn't get to all of this today. write smaller patches ;) https://codereview.chromium.org/1826903002/diff/60001/chrome/browser/resources/md_user_manager/create_profile.css File chrome/browser/resources/md_user_manager/create_profile.css (right): ...
4 years, 8 months ago (2016-04-05 23:38:40 UTC) #18
Dan Beam
lgtm https://codereview.chromium.org/1826903002/diff/60001/chrome/browser/resources/md_user_manager/create_profile.js File chrome/browser/resources/md_user_manager/create_profile.js (right): https://codereview.chromium.org/1826903002/diff/60001/chrome/browser/resources/md_user_manager/create_profile.js#newcode162 chrome/browser/resources/md_user_manager/create_profile.js:162: return this.signedInUsers_[signedInUserIndex]; nit: can't this technically return undefined ...
4 years, 8 months ago (2016-04-06 06:45:19 UTC) #19
atanasova
lgtm
4 years, 8 months ago (2016-04-07 14:18:51 UTC) #20
Moe
Thank you! https://codereview.chromium.org/1826903002/diff/60001/chrome/browser/resources/md_user_manager/create_profile.css File chrome/browser/resources/md_user_manager/create_profile.css (right): https://codereview.chromium.org/1826903002/diff/60001/chrome/browser/resources/md_user_manager/create_profile.css#newcode40 chrome/browser/resources/md_user_manager/create_profile.css:40: padding: 104px 0 16px 0; On 2016/04/05 ...
4 years, 8 months ago (2016-04-07 14:36:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1826903002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1826903002/80001
4 years, 8 months ago (2016-04-07 16:45:41 UTC) #24
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-07 16:52:03 UTC) #26
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/1d0bb14e8121201dd393eef0f43834327702815c Cr-Commit-Position: refs/heads/master@{#385787}
4 years, 8 months ago (2016-04-07 16:53:18 UTC) #28
lwchkg
4 years, 8 months ago (2016-04-07 18:04:50 UTC) #29
Message was sent while issue was closed.
On 2016/04/07 16:53:18, commit-bot: I haz the power wrote:
> Patchset 5 (id:??) landed as
> https://crrev.com/1d0bb14e8121201dd393eef0f43834327702815c
> Cr-Commit-Position: refs/heads/master@{#385787}

Sorry to step in after a closed review.

Just to notify that ProfileInfoCache is in the process of being refactored out.
Future uses of the profile info cache (or it's new name, profile attributes
storage) should be done in something like below:

ProfileAttributesStorage& storage =
g_browser_process->profile_manager()->GetProfileAttributesStorage();
base::DictionaryValue profile_info;
profile_info.SetString("name", storage.ChooseNameForNewProfile(0));

If you have any enquiries about the refactoring, please feel free to contact me.
(Or you can contact anthonyvd@.)

Anyway, I'll do the refactoring of signin_create_profile_handler.cc for you this
time, because one of my CQs needs the file refactored to compile correctly.
(FYI, that CQ has a side effect of removing implicit (i.e. non-IWYU) references
to profile_info_cache.h)

Regards,
WC Leung.

Powered by Google App Engine
This is Rietveld 408576698