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

Unified Diff: chrome/browser/sync/engine/syncapi.cc

Issue 7281017: [Sync] Add RequestCleanupDisabledTypes() method to SyncManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/engine/syncapi.cc
diff --git a/chrome/browser/sync/engine/syncapi.cc b/chrome/browser/sync/engine/syncapi.cc
index 51e603c890cc431c51ae848d74e091ede3d436e5..393b50c4f2bb9bba9340706f910b0aa62c551d99 100644
--- a/chrome/browser/sync/engine/syncapi.cc
+++ b/chrome/browser/sync/engine/syncapi.cc
@@ -1883,11 +1883,15 @@ bool SyncManager::SyncInternal::UpdateCryptographerFromNigori() {
}
void SyncManager::SyncInternal::StartSyncingNormally() {
- // Start the sync scheduler. This won't actually result in any
- // syncing until at least the DirectoryManager broadcasts the OPENED
- // event, and a valid server connection is detected.
- if (scheduler()) // NULL during certain unittests.
+ // NULL during certain unittests.
+ if (scheduler()) {
+ // Start the sync scheduler. This won't actually result in any
+ // syncing until at least the DirectoryManager broadcasts the
+ // OPENED event, and a valid server connection is detected.
scheduler()->Start(SyncScheduler::NORMAL_MODE, NULL);
+ // Cleanup any types disabled since the last time we synced.
+ scheduler()->ScheduleDisabledTypesCleanup();
tim (not reviewing) 2011/06/29 22:50:52 It does seem weird to always do this at this layer
+ }
}
bool SyncManager::SyncInternal::OpenDirectory() {

Powered by Google App Engine
This is Rietveld 408576698