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

Unified Diff: sync/internal_api/sync_manager_impl.h

Issue 17552014: [Sync] Have SBH tell SyncManager which types to purge (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dchecks Created 7 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
« no previous file with comments | « sync/internal_api/public/test/fake_sync_manager.h ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a21b6e81515981d3ca0f6297070d4b06b6ee2433..6fabfa87936209a0b117cb2e75c9c6bf58c7d3b5 100644
--- a/sync/internal_api/sync_manager_impl.h
+++ b/sync/internal_api/sync_manager_impl.h
@@ -105,9 +105,9 @@ class SYNC_EXPORT_PRIVATE SyncManagerImpl :
virtual void ConfigureSyncer(
ConfigureReason reason,
ModelTypeSet to_download,
+ ModelTypeSet to_purge,
ModelTypeSet to_journal,
ModelTypeSet to_unapply,
- ModelTypeSet to_ignore,
const ModelSafeRoutingInfo& new_routing_info,
const base::Closure& ready_task,
const base::Closure& retry_task) OVERRIDE;
@@ -240,13 +240,11 @@ class SYNC_EXPORT_PRIVATE SyncManagerImpl :
// Open the directory named with |username|.
bool OpenDirectory(const std::string& username);
- // Purge those types from |previously_enabled_types| that are no longer
- // enabled in |currently_enabled_types|. |to_journal| and |to_unapply|
- // specify types that require special handling. |to_journal| types are saved
- // into the delete journal, while |to_unapply| have only their local data
- // deleted, while their server data is preserved.
- bool PurgeDisabledTypes(ModelTypeSet previously_enabled_types,
- ModelTypeSet currently_enabled_types,
+ // Purge those disabled types as specified by |to_purge|. |to_journal| and
+ // |to_unapply| specify subsets that require special handling. |to_journal|
+ // types are saved into the delete journal, while |to_unapply| have only
+ // their local data deleted, while their server data is preserved.
+ bool PurgeDisabledTypes(ModelTypeSet to_purge,
ModelTypeSet to_journal,
ModelTypeSet to_unapply);
« no previous file with comments | « sync/internal_api/public/test/fake_sync_manager.h ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698