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

Issue 2905003: Implement support for disabling sync through configuration management. (Closed)

Created:
10 years, 5 months ago by Mattias Nissler (ping if slow)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, idana, John Grabowski, ben+cc_chromium.org, pam+watch_chromium.org, Raghu Simha, tim (not reviewing), markusheintz_, ncarter (slow), Paweł Hajdan Jr.
Visibility:
Public.

Description

Implement support for disabling sync through configuration management. BUG=45316 TEST=Configure SyncDisabled policy and check the UI. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52288

Patch Set 1 #

Total comments: 13

Patch Set 2 : rebase, fix nits, remove sync observer before destroying OTR profile. #

Patch Set 3 : Test sync startup shutdown under sync managed flag, fix up test failures. #

Patch Set 4 : Fix PrefsControllerTest on MAC. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -58 lines) Patch
M chrome/browser/app_controller_mac.mm View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/browser.h View 1 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/browser.cc View 1 4 chunks +23 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/browser_window_controller.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.mm View 1 7 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/configuration_policy_pref_store.h View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/configuration_policy_pref_store.cc View 1 3 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/configuration_policy_provider.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/configuration_policy_store.h View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/dom_ui/new_tab_page_sync_handler.cc View 1 4 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/dom_ui/new_tab_ui.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/gtk/bookmark_bar_gtk.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/options/content_page_gtk.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/gtk/options/content_page_gtk.cc View 1 9 chunks +17 lines, -5 lines 0 comments Download
M chrome/browser/managed_prefs_banner_base.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/managed_prefs_banner_base.cc View 1 chunk +9 lines, -5 lines 0 comments Download
M chrome/browser/profile.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/profile.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 4 chunks +10 lines, -15 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 4 chunks +29 lines, -0 lines 0 comments Download
A chrome/browser/sync/profile_sync_service_observer.h View 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/views/bookmark_bar_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/options/content_page_view.cc View 1 7 chunks +19 lines, -3 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Mattias Nissler (ping if slow)
Hi guys, can you review this? I thought danno for the policy related stuff, fbarchard ...
10 years, 5 months ago (2010-07-08 15:32:46 UTC) #1
Peter Kasting
LGTM http://codereview.chromium.org/2905003/diff/1/11 File chrome/browser/dom_ui/new_tab_page_sync_handler.cc (right): http://codereview.chromium.org/2905003/diff/1/11#newcode1 chrome/browser/dom_ui/new_tab_page_sync_handler.cc:1: // Copyright (c) 2006-2008 The Chromium Authors. All ...
10 years, 5 months ago (2010-07-08 20:38:39 UTC) #2
ncarter (slow)
-fbarchard, +skrul to review the sync parts.
10 years, 5 months ago (2010-07-08 21:01:44 UTC) #3
skrul
Sync parts LGTM, but can you add a test to profile_sync_service_startup_unittest.cc that tests the patch ...
10 years, 5 months ago (2010-07-08 21:36:32 UTC) #4
danno
http://codereview.chromium.org/2905003/diff/1/7 File chrome/browser/configuration_policy_pref_store.cc (right): http://codereview.chromium.org/2905003/diff/1/7#newcode29 chrome/browser/configuration_policy_pref_store.cc:29: { Value::TYPE_BOOLEAN, kPolicySyncDisabled, prefs::kSyncManaged } It looks like there ...
10 years, 5 months ago (2010-07-08 22:07:24 UTC) #5
danno
LGTM if you fix the two items in my previous comment.
10 years, 5 months ago (2010-07-08 22:08:47 UTC) #6
Mattias Nissler (ping if slow)
Thanks for your comments! I didn't get around to writing the unit test today, but ...
10 years, 5 months ago (2010-07-12 15:10:56 UTC) #7
Peter Kasting
http://codereview.chromium.org/2905003/diff/1/10 File chrome/browser/configuration_policy_store.h (right): http://codereview.chromium.org/2905003/diff/1/10#newcode46 chrome/browser/configuration_policy_store.h:46: #endif // CHROME_BROWSER_CONFIGURATION_POLICY_STORE_H_ Files should end with a newline. ...
10 years, 5 months ago (2010-07-12 17:41:16 UTC) #8
Mattias Nissler (ping if slow)
skrul: Now with unit test for sync startup.
10 years, 5 months ago (2010-07-12 19:39:59 UTC) #9
skrul
10 years, 5 months ago (2010-07-12 20:28:09 UTC) #10
Thank you :) LGTM

Powered by Google App Engine
This is Rietveld 408576698