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

Unified Diff: components/sync/base/model_type.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
« no previous file with comments | « components/sync/base/immutable_unittest.cc ('k') | components/sync/base/node_ordinal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/base/model_type.h
diff --git a/components/sync/base/model_type.h b/components/sync/base/model_type.h
index 8ce553ab868a52fba207658a0b281b73b924c86a..e2cddab494dec780ec5a27ab5d433622e0691c98 100644
--- a/components/sync/base/model_type.h
+++ b/components/sync/base/model_type.h
@@ -164,10 +164,10 @@ enum ModelType {
MODEL_TYPE_COUNT,
};
-typedef EnumSet<ModelType, FIRST_REAL_MODEL_TYPE, LAST_REAL_MODEL_TYPE>
- ModelTypeSet;
-typedef EnumSet<ModelType, UNSPECIFIED, LAST_REAL_MODEL_TYPE> FullModelTypeSet;
-typedef std::map<ModelType, const char*> ModelTypeNameMap;
+using ModelTypeSet =
+ EnumSet<ModelType, FIRST_REAL_MODEL_TYPE, LAST_REAL_MODEL_TYPE>;
+using FullModelTypeSet = EnumSet<ModelType, UNSPECIFIED, LAST_REAL_MODEL_TYPE>;
+using ModelTypeNameMap = std::map<ModelType, const char*>;
inline ModelType ModelTypeFromInt(int i) {
DCHECK_GE(i, 0);
« no previous file with comments | « components/sync/base/immutable_unittest.cc ('k') | components/sync/base/node_ordinal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698