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

Unified Diff: components/sync/engine_impl/model_type_registry.h

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 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: components/sync/engine_impl/model_type_registry.h
diff --git a/components/sync/engine_impl/model_type_registry.h b/components/sync/engine_impl/model_type_registry.h
index 3e25257e86a734439266b5a68c4b7a1536c1014d..a20def0af98fd1fe0a6cff28e9d0565b8b287eec 100644
--- a/components/sync/engine_impl/model_type_registry.h
+++ b/components/sync/engine_impl/model_type_registry.h
@@ -31,8 +31,8 @@ class DirectoryUpdateHandler;
class ModelTypeWorker;
class UpdateHandler;
-typedef std::map<ModelType, UpdateHandler*> UpdateHandlerMap;
-typedef std::map<ModelType, CommitContributor*> CommitContributorMap;
+using UpdateHandlerMap = std::map<ModelType, UpdateHandler*>;
+using CommitContributorMap = std::map<ModelType, CommitContributor*>;
// Keeps track of the sets of active update handlers and commit contributors.
class ModelTypeRegistry : public ModelTypeConnector,
@@ -106,8 +106,8 @@ class ModelTypeRegistry : public ModelTypeConnector,
base::WeakPtr<ModelTypeConnector> AsWeakPtr();
private:
- typedef std::map<ModelType, std::unique_ptr<DataTypeDebugInfoEmitter>>
- DataTypeDebugInfoEmitterMap;
+ using DataTypeDebugInfoEmitterMap =
+ std::map<ModelType, std::unique_ptr<DataTypeDebugInfoEmitter>>;
void OnEncryptionStateChanged();
« no previous file with comments | « components/sync/engine_impl/loopback_server/loopback_server.cc ('k') | components/sync/engine_impl/process_updates_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698