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

Issue 12077030: Allow signin to continue even if sync is disabled by policy. (Closed)

Created:
7 years, 10 months ago by Andrew T Wilson (Slow)
Modified:
7 years, 10 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, dbeam+watch-ntp_chromium.org, Raman Kakilate, akalin, Raghu Simha, benquan, dhollowa+watch_chromium.org, ahutter, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, sail+watch_chromium.org, arv (Not doing code reviews), Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer, haitaol1, Ilya Sherman, tim (not reviewing), pedrosimonetti+watch_chromium.org
Visibility:
Public.

Description

Allow signin to continue even if sync is disabled by policy. Change signin logic to allow signin if SyncDisabled policy is set. Also broke out logic in SyncUIUtil into separate class so it can be used even if sync is not enabled. BUG=166148 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180301

Patch Set 1 #

Patch Set 2 : Fixed test/compile errs. #

Patch Set 3 : Fixed policy browsertest #

Patch Set 4 : Fixed test issue on mac #

Patch Set 5 : Fixed test issue on mac. #

Patch Set 6 : Fixed mac tests. #

Total comments: 1

Patch Set 7 : Cleanup after self-review #

Total comments: 6

Patch Set 8 : Address review feedback. #

Total comments: 6

Patch Set 9 : Review feedback + fix to 'cancel advanced signin' flow #

Patch Set 10 : Fix windows sync integration test failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+683 lines, -556 lines) Patch
M chrome/app/generated_resources.grd View 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_manager_unittest.cc View 5 chunks +40 lines, -8 lines 0 comments Download
M chrome/browser/defaults.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/defaults.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 3 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/resources/options/sync_section.html View 1 chunk +3 lines, -3 lines 0 comments Download
A chrome/browser/signin/fake_auth_status_provider.h View 1 2 3 4 5 6 7 8 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/signin/fake_auth_status_provider.cc View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_global_error.h View 1 2 3 4 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/signin/signin_global_error.cc View 1 2 3 4 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/signin/signin_global_error_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +39 lines, -60 lines 0 comments Download
M chrome/browser/signin/signin_manager.h View 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/signin/signin_manager.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/signin/signin_manager_fake.h View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_manager_fake.cc View 1 2 3 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/signin/signin_tracker.cc View 4 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/signin/signin_tracker_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -2 lines 0 comments Download
A chrome/browser/signin/signin_ui_util.h View 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/signin/signin_ui_util.cc View 1 2 3 1 chunk +136 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_factory.cc View 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.cc View 5 chunks +54 lines, -96 lines 0 comments Download
M chrome/browser/sync/sync_ui_util_unittest.cc View 1 2 3 4 5 6 7 8 9 chunks +78 lines, -72 lines 0 comments Download
M chrome/browser/sync/test/integration/migration_errors_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/browser_command_controller.cc View 1 2 3 4 5 6 7 8 9 5 chunks +3 lines, -30 lines 0 comments Download
M chrome/browser/ui/browser_mac.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/chrome_pages.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/chrome_pages.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 6 7 3 chunks +3 lines, -37 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -23 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper_unittest.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model.h View 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model.cc View 1 2 3 4 5 6 7 8 8 chunks +17 lines, -76 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_page_sync_handler.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/new_tab_ui.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_login_handler.cc View 1 2 3 4 5 6 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -14 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler.cc View 1 2 3 4 5 6 7 8 16 chunks +60 lines, -29 lines 0 comments Download
M chrome/browser/ui/webui/sync_setup_handler_unittest.cc View 1 2 3 4 5 6 7 8 10 chunks +17 lines, -12 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 3 chunks +6 lines, -1 line 0 comments Download
M chrome/test/base/testing_profile.cc View 4 chunks +11 lines, -4 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Andrew T Wilson (Slow)
https://codereview.chromium.org/12077030/diff/13004/chrome/browser/autofill/autofill_manager_unittest.cc File chrome/browser/autofill/autofill_manager_unittest.cc (left): https://codereview.chromium.org/12077030/diff/13004/chrome/browser/autofill/autofill_manager_unittest.cc#oldcode3083 chrome/browser/autofill/autofill_manager_unittest.cc:3083: profile()->set_incognito(true); It's not OK to initialize a profile then ...
7 years, 10 months ago (2013-01-29 17:43:15 UTC) #1
Andrew T Wilson (Slow)
Roger, PTAL at the browser/signin and browser/sync stuff. James, PTAL at browser/ui/webui
7 years, 10 months ago (2013-01-29 17:45:10 UTC) #2
Andrew T Wilson (Slow)
On 2013/01/29 17:45:10, Andrew T Wilson wrote: Also, James, take a peek at the test ...
7 years, 10 months ago (2013-01-29 17:46:24 UTC) #3
sail
Please add me as a reviewer to all sync promo changes. https://codereview.chromium.org/12077030/diff/5007/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc File chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc (right): ...
7 years, 10 months ago (2013-01-29 19:17:16 UTC) #4
Andrew T Wilson (Slow)
https://codereview.chromium.org/12077030/diff/5007/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc File chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc (right): https://codereview.chromium.org/12077030/diff/5007/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc#newcode133 chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc:133: // Sync is disabled by policy - display the ...
7 years, 10 months ago (2013-01-30 07:43:41 UTC) #5
Andrew T Wilson (Slow)
Roger, please also look at browser/ui/sync jhawkins: also look at browser/resources Sky, please look at ...
7 years, 10 months ago (2013-01-30 13:55:49 UTC) #6
sky
I only looked at browser/ui, none of the children. That LGTM.
7 years, 10 months ago (2013-01-30 15:02:13 UTC) #7
Roger Tawa OOO till Jul 10th
lgtm https://codereview.chromium.org/12077030/diff/6008/chrome/browser/signin/fake_auth_status_provider.cc File chrome/browser/signin/fake_auth_status_provider.cc (right): https://codereview.chromium.org/12077030/diff/6008/chrome/browser/signin/fake_auth_status_provider.cc#newcode21 chrome/browser/signin/fake_auth_status_provider.cc:21: void FakeAuthStatusProvider::set_auth_error( SetAuthError naming? https://codereview.chromium.org/12077030/diff/6008/chrome/browser/ui/toolbar/wrench_menu_model.cc File chrome/browser/ui/toolbar/wrench_menu_model.cc (right): ...
7 years, 10 months ago (2013-01-30 16:46:45 UTC) #8
James Hawkins
webui LGTM with nit. https://codereview.chromium.org/12077030/diff/6008/chrome/browser/ui/webui/sync_setup_handler_unittest.cc File chrome/browser/ui/webui/sync_setup_handler_unittest.cc (right): https://codereview.chromium.org/12077030/diff/6008/chrome/browser/ui/webui/sync_setup_handler_unittest.cc#newcode551 chrome/browser/ui/webui/sync_setup_handler_unittest.cc:551: ASSERT_LE(1U, web_ui_.call_data().size()); This really should ...
7 years, 10 months ago (2013-01-30 16:55:09 UTC) #9
sail
cocoa/* profiles/* and sync_promo/* LGTM https://codereview.chromium.org/12077030/diff/5007/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc File chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc (right): https://codereview.chromium.org/12077030/diff/5007/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc#newcode133 chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc:133: // Sync is disabled ...
7 years, 10 months ago (2013-01-30 17:51:01 UTC) #10
Jay Civelli
chrome/tests LGTM
7 years, 10 months ago (2013-01-30 18:20:30 UTC) #11
Ilya Sherman
lgtm
7 years, 10 months ago (2013-01-30 21:24:33 UTC) #12
Andrew T Wilson (Slow)
Thanks everyone for the speedy reviews! https://codereview.chromium.org/12077030/diff/6008/chrome/browser/signin/fake_auth_status_provider.cc File chrome/browser/signin/fake_auth_status_provider.cc (right): https://codereview.chromium.org/12077030/diff/6008/chrome/browser/signin/fake_auth_status_provider.cc#newcode21 chrome/browser/signin/fake_auth_status_provider.cc:21: void FakeAuthStatusProvider::set_auth_error( On ...
7 years, 10 months ago (2013-01-31 10:38:05 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/12077030/9006
7 years, 10 months ago (2013-01-31 14:39:42 UTC) #14
Dan Beam
c/b/ui/webui/ntp lgtm
7 years, 10 months ago (2013-01-31 19:18:53 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) sync_integration_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=105673
7 years, 10 months ago (2013-01-31 20:22:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/12077030/26001
7 years, 10 months ago (2013-02-01 16:14:09 UTC) #17
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 10 months ago (2013-02-01 17:46:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/12077030/26001
7 years, 10 months ago (2013-02-01 23:32:44 UTC) #19
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=106699
7 years, 10 months ago (2013-02-02 03:17:32 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/12077030/26001
7 years, 10 months ago (2013-02-02 08:39:19 UTC) #21
commit-bot: I haz the power
7 years, 10 months ago (2013-02-02 17:53:37 UTC) #22
Retried try job too often on win_rel for step(s) browser_tests
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698