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

Unified Diff: chrome/browser/sync/glue/sync_backend_registrar.h

Issue 10804039: Make SyncBackendRegistrar aware of loaded data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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: chrome/browser/sync/glue/sync_backend_registrar.h
diff --git a/chrome/browser/sync/glue/sync_backend_registrar.h b/chrome/browser/sync/glue/sync_backend_registrar.h
index 6e1f37f41a859fee95b88ba6409473bd1d5c627d..4f183978874001ed5989cfe11cfc2d604f69028e 100644
--- a/chrome/browser/sync/glue/sync_backend_registrar.h
+++ b/chrome/browser/sync/glue/sync_backend_registrar.h
@@ -33,15 +33,17 @@ class UIModelWorker;
// events to the right processors.
class SyncBackendRegistrar : public syncer::SyncManager::ChangeDelegate {
public:
- // |initial_types| contains the initial set of types to sync
- // (initially put in the passive group). |name| is used for
- // debugging. Does not take ownership of |profile| or |sync_loop|.
- // Must be created on the UI thread.
- SyncBackendRegistrar(syncer::ModelTypeSet initial_types,
- const std::string& name,
+ // |name| is used for debugging. Does not take ownership of |profile| or
+ // |sync_loop|. Must be created on the UI thread.
+ SyncBackendRegistrar(const std::string& name,
Profile* profile,
MessageLoop* sync_loop);
+ // Informs the SyncBackendRegistrar of the currently enabled set of types.
+ // These types will be placed in the passive group. This function should be
+ // called exactly once during startup.
+ void SetInitialTypes(syncer::ModelTypeSet initial_types);
+
// SyncBackendRegistrar must be destroyed as follows:
//
// 1) On the sync thread, call OnSyncerShutdownComplete() after
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_unittest.cc ('k') | chrome/browser/sync/glue/sync_backend_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698