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

Issue 15774008: Pass errors generated during limited-user registration up to the UI for display. (Closed)

Created:
7 years, 6 months ago by Pam (message me for reviews)
Modified:
7 years, 6 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, chrome-apps-syd-reviews_chromium.org, nkostylev+watch_chromium.org, tfarina, tim (not reviewing), sail+watch_chromium.org, rginda+watch_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, Raghu Simha, haitaol1, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, akalin, Denis Kuznetsov (DE-MUC)
Visibility:
Public.

Description

Pass errors generated during limited-user registration up to the UI for display. Introduces a new Profile::CREATE_STATUS_REMOTE_FAIL type, and renames CREATE_STATUS_FAIL to CREATE_STATUS_LOCAL_FAIL. Adds callbacks and reorganizes profile creation to allow registration errors to propagate back up to the UI layer, and displays them in the profile creation dialog. Adds a spinner to the creation dialog. Adds UMA metrics. BUG=234991 TEST=manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203976

Patch Set 1 #

Patch Set 2 : Fix profile-status switch statements #

Patch Set 3 : Updated checkout #

Patch Set 4 : One more switch statement #

Total comments: 10

Patch Set 5 : Addressed Bernhard's comments; includes test code for posterity #

Patch Set 6 : Test block removed #

Total comments: 3

Patch Set 7 : Addressed James's comments #

Total comments: 1

Patch Set 8 : Addressed Drew's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -160 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/managed_mode/managed_user_registration_service.h View 1 2 3 4 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/managed_mode/managed_user_registration_service.cc View 1 2 3 4 5 2 chunks +0 lines, -21 lines 0 comments Download
M chrome/browser/managed_mode/managed_user_service.h View 1 2 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/managed_mode/managed_user_service.cc View 1 2 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_manager_browsertest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_metrics.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/manage_profile_overlay.html View 1 2 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/browser/resources/options/manage_profile_overlay.js View 1 2 3 4 5 6 5 chunks +28 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/profile_loader.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.cc View 1 2 3 4 5 6 7 1 chunk +49 lines, -38 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.h View 1 2 3 4 2 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 9 chunks +120 lines, -25 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.cc View 1 2 3 chunks +1 line, -34 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Pam (message me for reviews)
sail - profiles and ui/cocoa jhawkins - resources and webui bauerb - managed_mode atwilson - ...
7 years, 6 months ago (2013-05-31 21:06:25 UTC) #1
Bernhard Bauer
https://codereview.chromium.org/15774008/diff/40007/chrome/browser/managed_mode/managed_user_registration_service.cc File chrome/browser/managed_mode/managed_user_registration_service.cc (right): https://codereview.chromium.org/15774008/diff/40007/chrome/browser/managed_mode/managed_user_registration_service.cc#newcode111 chrome/browser/managed_mode/managed_user_registration_service.cc:111: const ProfileManager::CreateCallback& callback) { I wonder if we still ...
7 years, 6 months ago (2013-06-03 10:52:47 UTC) #2
Nikita (slow)
cc: antrim@
7 years, 6 months ago (2013-06-03 13:09:40 UTC) #3
Pam (message me for reviews)
New pacth up. PTAL, everyone. https://codereview.chromium.org/15774008/diff/40007/chrome/browser/managed_mode/managed_user_registration_service.cc File chrome/browser/managed_mode/managed_user_registration_service.cc (right): https://codereview.chromium.org/15774008/diff/40007/chrome/browser/managed_mode/managed_user_registration_service.cc#newcode111 chrome/browser/managed_mode/managed_user_registration_service.cc:111: const ProfileManager::CreateCallback& callback) { ...
7 years, 6 months ago (2013-06-03 13:39:28 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/15774008/diff/40007/chrome/browser/ui/webui/options/browser_options_handler.cc File chrome/browser/ui/webui/options/browser_options_handler.cc (right): https://codereview.chromium.org/15774008/diff/40007/chrome/browser/ui/webui/options/browser_options_handler.cc#newcode1216 chrome/browser/ui/webui/options/browser_options_handler.cc:1216: void BrowserOptionsHandler::DeleteProfile(const ListValue* args) { On 2013/06/03 13:39:28, Pam ...
7 years, 6 months ago (2013-06-03 14:25:01 UTC) #5
Bernhard Bauer
LGTM, I meant :)
7 years, 6 months ago (2013-06-03 14:25:18 UTC) #6
Pam (message me for reviews)
https://codereview.chromium.org/15774008/diff/40007/chrome/browser/ui/webui/options/browser_options_handler.cc File chrome/browser/ui/webui/options/browser_options_handler.cc (right): https://codereview.chromium.org/15774008/diff/40007/chrome/browser/ui/webui/options/browser_options_handler.cc#newcode1216 chrome/browser/ui/webui/options/browser_options_handler.cc:1216: void BrowserOptionsHandler::DeleteProfile(const ListValue* args) { On 2013/06/03 14:25:01, Bernhard ...
7 years, 6 months ago (2013-06-03 14:27:10 UTC) #7
James Hawkins
LGTM with nits. https://codereview.chromium.org/15774008/diff/66003/chrome/browser/resources/options/manage_profile_overlay.js File chrome/browser/resources/options/manage_profile_overlay.js (right): https://codereview.chromium.org/15774008/diff/66003/chrome/browser/resources/options/manage_profile_overlay.js#newcode461 chrome/browser/resources/options/manage_profile_overlay.js:461: * @param {boolean} inProgress Whether the ...
7 years, 6 months ago (2013-06-03 18:43:44 UTC) #8
sail
profiles/* LGTM
7 years, 6 months ago (2013-06-03 21:07:41 UTC) #9
Andrew T Wilson (Slow)
LGTM with one nit which you can address in a separate CL if you want. ...
7 years, 6 months ago (2013-06-04 07:01:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pam@chromium.org/15774008/85004
7 years, 6 months ago (2013-06-04 07:04:55 UTC) #11
Pam (message me for reviews)
On 2013/06/04 07:04:55, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 6 months ago (2013-06-04 11:36:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pam@chromium.org/15774008/85004
7 years, 6 months ago (2013-06-04 11:49:45 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pam@chromium.org/15774008/85004
7 years, 6 months ago (2013-06-04 13:18:53 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pam@chromium.org/15774008/85004
7 years, 6 months ago (2013-06-04 15:26:49 UTC) #15
commit-bot: I haz the power
7 years, 6 months ago (2013-06-04 16:38:37 UTC) #16
Message was sent while issue was closed.
Change committed as 203976

Powered by Google App Engine
This is Rietveld 408576698