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

Issue 10192005: Refactor LoginUIService to not rely on WebUI. (Closed)

Created:
8 years, 8 months ago by Andrew T Wilson (Slow)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, ncarter (slow), akalin, Raghu Simha, mihaip+watch_chromium.org, Aaron Boodman, tim (not reviewing)
Visibility:
Public.

Description

Refactor LoginUIService to not rely on WebUI. Clean up LoginUIService::ShowLoginUI() API to not take a force_login flag. Moved force_login code into the only place that needs it - AppNotifyChannelUI. Fixed AppNotifyChannelUI code to gracefully handle having sync UI visible when the user tries to re-auth. BUG=118795 TEST=bring up sync UI via various methods (promo, app notifications infobar, wrench menu, error link in settings page, etc) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134819

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -60 lines) Patch
M chrome/browser/extensions/app_notify_channel_ui.cc View 1 2 chunks +34 lines, -3 lines 0 comments Download
M chrome/browser/sync/sync_global_error.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/sync_global_error_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/login_ui_service.h View 2 chunks +22 lines, -19 lines 0 comments Download
M chrome/browser/ui/webui/signin/login_ui_service.cc View 2 chunks +6 lines, -21 lines 0 comments Download
M chrome/browser/ui/webui/sync_promo/sync_promo_handler.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/sync_promo/sync_promo_handler.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.h View 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 5 chunks +17 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler_unittest.cc View 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Andrew T Wilson (Slow)
James, here's that refactoring you requested back during your review a few weeks ago. PTAL. ...
8 years, 8 months ago (2012-04-27 00:44:14 UTC) #1
James Hawkins
http://codereview.chromium.org/10192005/diff/1/chrome/browser/extensions/app_notify_channel_ui.cc File chrome/browser/extensions/app_notify_channel_ui.cc (right): http://codereview.chromium.org/10192005/diff/1/chrome/browser/extensions/app_notify_channel_ui.cc#newcode136 chrome/browser/extensions/app_notify_channel_ui.cc:136: // Let's bring up the login page. nit: Don't ...
8 years, 8 months ago (2012-04-27 17:19:03 UTC) #2
Andrew T Wilson (Slow)
PTAL https://chromiumcodereview.appspot.com/10192005/diff/1/chrome/browser/extensions/app_notify_channel_ui.cc File chrome/browser/extensions/app_notify_channel_ui.cc (right): https://chromiumcodereview.appspot.com/10192005/diff/1/chrome/browser/extensions/app_notify_channel_ui.cc#newcode136 chrome/browser/extensions/app_notify_channel_ui.cc:136: // Let's bring up the login page. On ...
8 years, 8 months ago (2012-04-28 00:32:27 UTC) #3
James Hawkins
lgtm
8 years, 8 months ago (2012-04-28 01:00:41 UTC) #4
Munjal (Google)
LGTM. Did the unit tests for AppNotifyChannelUI pass? I am a bit surprised that despite ...
8 years, 7 months ago (2012-04-30 17:44:17 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/10192005/10001
8 years, 7 months ago (2012-05-01 00:22:56 UTC) #6
commit-bot: I haz the power
Presubmit check for 10192005-10001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 7 months ago (2012-05-01 00:23:04 UTC) #7
Andrew T Wilson (Slow)
On 2012/04/30 17:44:17, munjal wrote: > LGTM. > > Did the unit tests for AppNotifyChannelUI ...
8 years, 7 months ago (2012-05-01 00:38:49 UTC) #8
Andrew T Wilson (Slow)
sky: Please take a look at change to ui/browser.cc
8 years, 7 months ago (2012-05-01 00:39:47 UTC) #9
sky
LGTM
8 years, 7 months ago (2012-05-01 20:29:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/10192005/10001
8 years, 7 months ago (2012-05-01 20:50:18 UTC) #11
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary filesare still unsupported at ...
8 years, 7 months ago (2012-05-01 21:19:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/10192005/10001
8 years, 7 months ago (2012-05-01 21:20:34 UTC) #13
commit-bot: I haz the power
Try job failure for 10192005-10001 on win_rel for step "update". http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=24682 Step "update" is always ...
8 years, 7 months ago (2012-05-01 21:35:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/10192005/10001
8 years, 7 months ago (2012-05-01 22:07:38 UTC) #15
commit-bot: I haz the power
8 years, 7 months ago (2012-05-01 23:33:45 UTC) #16
Change committed as 134819

Powered by Google App Engine
This is Rietveld 408576698