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

Unified Diff: sync/internal_api/sync_manager_impl.h

Issue 10541079: [Sync] Remove CleanupDisabledTypes command and move purge logic into SyncManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix rebase conflict Created 8 years, 5 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: sync/internal_api/sync_manager_impl.h
diff --git a/sync/internal_api/sync_manager_impl.h b/sync/internal_api/sync_manager_impl.h
index 75f9c337f7a24a5ca0acb78a412fa5c2f3efceaa..627d950671daa2341453f8b9daca9ace2e943d01 100644
--- a/sync/internal_api/sync_manager_impl.h
+++ b/sync/internal_api/sync_manager_impl.h
@@ -194,6 +194,7 @@ class SyncManagerImpl : public SyncManager,
FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, NudgeDelayTest);
FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, OnNotificationStateChange);
FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, OnIncomingNotification);
+ FRIEND_TEST_ALL_PREFIXES(SyncManagerTest, CleanupDisabledTypes);
struct NotificationInfo {
NotificationInfo();
@@ -241,6 +242,11 @@ class SyncManagerImpl : public SyncManager,
// went wrong.
bool SignIn(const SyncCredentials& credentials);
+ // Purge those types from |previously_enabled_types| that are no longer
+ // enabled in |currently_enabled_types|.
+ bool CleanupDisabledTypes(ModelTypeSet previously_enabled_types,
+ ModelTypeSet currently_enabled_types);
+
void RequestNudgeForDataTypes(
const tracked_objects::Location& nudge_location,
ModelTypeSet type);

Powered by Google App Engine
This is Rietveld 408576698