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

Unified Diff: components/sync/model/sync_data.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/model/sync_change_unittest.cc ('k') | components/sync/model/sync_error_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/model/sync_data.h
diff --git a/components/sync/model/sync_data.h b/components/sync/model/sync_data.h
index 9844a0b47557143d0643d02b9869f7cede6eed10..84b1dc65ecb7b411f1bdb0eeb162526e768780cf 100644
--- a/components/sync/model/sync_data.h
+++ b/components/sync/model/sync_data.h
@@ -110,7 +110,7 @@ class SyncData {
// Necessary since we forward-declare sync_pb::SyncEntity; see
// comments in immutable.h.
struct ImmutableSyncEntityTraits {
- typedef sync_pb::SyncEntity* Wrapper;
+ using Wrapper = sync_pb::SyncEntity*;
static void InitializeWrapper(Wrapper* wrapper);
@@ -123,8 +123,8 @@ class SyncData {
static void Swap(sync_pb::SyncEntity* t1, sync_pb::SyncEntity* t2);
};
- typedef Immutable<sync_pb::SyncEntity, ImmutableSyncEntityTraits>
- ImmutableSyncEntity;
+ using ImmutableSyncEntity =
+ Immutable<sync_pb::SyncEntity, ImmutableSyncEntityTraits>;
// Equal to kInvalidId iff this is local.
int64_t id_;
@@ -198,7 +198,7 @@ class SyncDataRemote : public SyncData {
// gmock printer helper.
void PrintTo(const SyncData& sync_data, std::ostream* os);
-typedef std::vector<SyncData> SyncDataList;
+using SyncDataList = std::vector<SyncData>;
} // namespace syncer
« no previous file with comments | « components/sync/model/sync_change_unittest.cc ('k') | components/sync/model/sync_error_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698