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

Issue 15734006: Restructure user-creation flow and surface errors (Closed)

Created:
7 years, 7 months ago by Pam (message me for reviews)
Modified:
7 years, 6 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, rginda+watch_chromium.org, arv+watch_chromium.org, sail+watch_chromium.org, robertshield
Visibility:
Public.

Description

Restructure user-creation flow for modularity and error-reporting. Pulls the call to open a new user's first window out of the ProfileManager and into the UI layer that called for the creation of the new user. This improves code layering (ProfileManager shouldn't have to know about the host desktop type) and allows us to communicate errors during user creation (also partially added here, although most errors aren't yet captured). BUG=153864, 243379 TEST=existing unit tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202939

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 6

Patch Set 9 : Address Drew's comments #

Patch Set 10 : Fix Mac browser test #

Total comments: 1

Patch Set 11 : Removed log; patch for commit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -90 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/managed_mode/managed_user_registration_service.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 9 7 chunks +22 lines, -52 lines 0 comments Download
M chrome/browser/profiles/profile_manager_browsertest.cc View 1 2 3 4 5 6 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 3 4 5 6 7 8 2 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/manage_profile_overlay.js View 1 2 3 4 5 6 7 8 9 10 7 chunks +56 lines, -4 lines 0 comments Download
M chrome/browser/ui/bookmarks/bookmark_browsertest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.cc View 1 2 3 4 2 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 3 chunks +44 lines, -13 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.cc View 1 2 3 4 3 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
Pam (message me for reviews)
sail - profiles jhawkins - webui and resources atwilson - sync In addition to the ...
7 years, 7 months ago (2013-05-24 14:07:32 UTC) #1
sail
Look really good. profiles/* LGTM
7 years, 7 months ago (2013-05-24 22:22:33 UTC) #2
Pam (message me for reviews)
https://codereview.chromium.org/15734006/diff/15003/chrome/browser/resources/options/manage_profile_overlay.js File chrome/browser/resources/options/manage_profile_overlay.js (right): https://codereview.chromium.org/15734006/diff/15003/chrome/browser/resources/options/manage_profile_overlay.js#newcode469 chrome/browser/resources/options/manage_profile_overlay.js:469: onSuccess_: function(is_managed) { I will change this to isManaged ...
7 years, 6 months ago (2013-05-27 08:17:25 UTC) #3
Andrew T Wilson (Slow)
LGTM with a few nits https://codereview.chromium.org/15734006/diff/15003/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/15734006/diff/15003/chrome/browser/resources/options/browser_options.js#newcode1066 chrome/browser/resources/options/browser_options.js:1066: showCreateProfileSuccess_: function(is_limited) { nit: ...
7 years, 6 months ago (2013-05-27 12:02:43 UTC) #4
Pam (message me for reviews)
Thanks! James, ready when you are. :) https://codereview.chromium.org/15734006/diff/15003/chrome/browser/resources/options/browser_options.js File chrome/browser/resources/options/browser_options.js (right): https://codereview.chromium.org/15734006/diff/15003/chrome/browser/resources/options/browser_options.js#newcode1066 chrome/browser/resources/options/browser_options.js:1066: showCreateProfileSuccess_: function(is_limited) ...
7 years, 6 months ago (2013-05-27 14:34:36 UTC) #5
Pam (message me for reviews)
James, please take a look. This patch includes a fix for that failing Mac browser_test.
7 years, 6 months ago (2013-05-29 17:19:31 UTC) #6
James Hawkins
LGTM with nit. https://codereview.chromium.org/15734006/diff/104001/chrome/browser/resources/options/manage_profile_overlay.js File chrome/browser/resources/options/manage_profile_overlay.js (right): https://codereview.chromium.org/15734006/diff/104001/chrome/browser/resources/options/manage_profile_overlay.js#newcode479 chrome/browser/resources/options/manage_profile_overlay.js:479: console.log('Success - show confirmation'); nit: Remove ...
7 years, 6 months ago (2013-05-29 17:22:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pam@chromium.org/15734006/118001
7 years, 6 months ago (2013-05-29 17:32:57 UTC) #8
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 19:43:15 UTC) #9
Message was sent while issue was closed.
Change committed as 202939

Powered by Google App Engine
This is Rietveld 408576698