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

Issue 8332023: Add support for temporarily disabling sync. (Closed)

Created:
9 years, 2 months ago by nyquist
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

Add support for temporarily disabling sync. Adds functionality to the ProfileSyncService to temporarily disable sync and later be able to enable it again. This is achieved by stopping the sync backend and suppressing future startups when sync is disabled. The flag for suppressing startup is removed when enabling sync again, and the sync backend is started. Contributed by nyquist@chromium.org TEST=unit_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108148

Patch Set 1 #

Total comments: 2

Patch Set 2 : Simplified startup condition for sync #

Total comments: 4

Patch Set 3 : Renamed methods for stopping/starting sync and added google services username to sync prefs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -11 lines) Patch
M chrome/browser/sync/profile_sync_service.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 2 chunks +28 lines, -11 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_prefs.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/sync_prefs.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
nyquist
9 years, 2 months ago (2011-10-25 07:21:08 UTC) #1
Andrew T Wilson (Slow)
LGTM with one nit. http://codereview.chromium.org/8332023/diff/1/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/8332023/diff/1/chrome/browser/sync/profile_sync_service.cc#newcode196 chrome/browser/sync/profile_sync_service.cc:196: if (!HasSyncSetupCompleted()) { Should we ...
9 years, 2 months ago (2011-10-26 01:23:26 UTC) #2
qsr
http://codereview.chromium.org/8332023/diff/1/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/8332023/diff/1/chrome/browser/sync/profile_sync_service.cc#newcode196 chrome/browser/sync/profile_sync_service.cc:196: if (!HasSyncSetupCompleted()) { On 2011/10/26 01:23:26, Andrew T Wilson ...
9 years, 2 months ago (2011-10-26 07:07:00 UTC) #3
nyquist
Fixed condition for startup of sync and updated comment. PTAL
9 years, 1 month ago (2011-10-26 14:55:35 UTC) #4
akalin
http://codereview.chromium.org/8332023/diff/6001/chrome/browser/sync/profile_sync_service.cc File chrome/browser/sync/profile_sync_service.cc (right): http://codereview.chromium.org/8332023/diff/6001/chrome/browser/sync/profile_sync_service.cc#newcode1527 chrome/browser/sync/profile_sync_service.cc:1527: signin_->SetUsername(profile_->GetProfileName()); What is the username used for? Isn't the ...
9 years, 1 month ago (2011-10-26 18:53:09 UTC) #5
nyquist
Renamed methods for stopping/starting sync and added google services username to sync prefs. PTAL
9 years, 1 month ago (2011-10-27 18:03:31 UTC) #6
akalin
LGTM
9 years, 1 month ago (2011-10-31 20:28:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nyquist@chromium.org/8332023/8002
9 years, 1 month ago (2011-11-01 18:06:14 UTC) #8
commit-bot: I haz the power
9 years, 1 month ago (2011-11-01 19:15:30 UTC) #9
Change committed as 108148

Powered by Google App Engine
This is Rietveld 408576698