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

Unified Diff: components/sync/driver/glue/sync_backend_registrar.h

Issue 2507913002: [Sync] Remove some unnecessary typedefs in SyncBackendRegistrar. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | components/sync/driver/glue/sync_backend_registrar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/driver/glue/sync_backend_registrar.h
diff --git a/components/sync/driver/glue/sync_backend_registrar.h b/components/sync/driver/glue/sync_backend_registrar.h
index 68f51f1d9b0e430a9e5bcfba1c1c28f5de43f443..2f8f355646d3c7875d328d64f90363ccfd3d2b54 100644
--- a/components/sync/driver/glue/sync_backend_registrar.h
+++ b/components/sync/driver/glue/sync_backend_registrar.h
@@ -116,9 +116,6 @@ class SyncBackendRegistrar : public SyncManager::ChangeDelegate {
void GetModelSafeRoutingInfo(ModelSafeRoutingInfo* out);
private:
- typedef std::map<ModelSafeGroup, scoped_refptr<ModelSafeWorker>> WorkerMap;
- typedef std::map<ModelType, ChangeProcessor*> ProcessorMap;
-
// Add a worker for |group| to the worker map if one is successfully created
// by |worker_factory|.
void MaybeAddWorker(ModelSafeWorkerFactory worker_factory,
@@ -152,12 +149,13 @@ class SyncBackendRegistrar : public SyncManager::ChangeDelegate {
mutable base::Lock lock_;
// Workers created by this SyncBackendRegistrar.
- WorkerMap workers_;
-
- ModelSafeRoutingInfo routing_info_;
+ std::map<ModelSafeGroup, scoped_refptr<ModelSafeWorker>> workers_;
// The change processors that handle the different data types.
- ProcessorMap processors_;
+ std::map<ModelType, ChangeProcessor*> processors_;
+
+ // Maps ModelType to ModelSafeGroup.
+ ModelSafeRoutingInfo routing_info_;
// The types that were enabled as of the last configuration. Updated on each
// call to ConfigureDataTypes as well as SetInitialTypes.
« no previous file with comments | « no previous file | components/sync/driver/glue/sync_backend_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698