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

Unified Diff: components/sync/syncable/entry_kernel.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/syncable/directory_backing_store.cc ('k') | components/sync/syncable/metahandle_set.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/syncable/entry_kernel.h
diff --git a/components/sync/syncable/entry_kernel.h b/components/sync/syncable/entry_kernel.h
index e56fc55788a81c84d4009f6e926d9db3babd3584..2be38b63eefba83c1a0fcfe43f4a7c37794c9872 100644
--- a/components/sync/syncable/entry_kernel.h
+++ b/components/sync/syncable/entry_kernel.h
@@ -195,8 +195,8 @@ enum { BIT_TEMPS_COUNT = BIT_TEMPS_END - BIT_TEMPS_BEGIN };
struct EntryKernel {
private:
- typedef ProtoValuePtr<sync_pb::EntitySpecifics> EntitySpecificsPtr;
- typedef ProtoValuePtr<sync_pb::AttachmentMetadata> AttachmentMetadataPtr;
+ using EntitySpecificsPtr = ProtoValuePtr<sync_pb::EntitySpecifics>;
+ using AttachmentMetadataPtr = ProtoValuePtr<sync_pb::AttachmentMetadata>;
std::string string_fields[STRING_FIELDS_COUNT];
EntitySpecificsPtr specifics_fields[PROTO_FIELDS_COUNT];
@@ -395,22 +395,21 @@ class EntryKernelLessByMetaHandle {
}
};
-typedef std::set<const EntryKernel*,
- EntryKernelLessByMetaHandle<const EntryKernel*>>
- EntryKernelSet;
+using EntryKernelSet =
+ std::set<const EntryKernel*,
+ EntryKernelLessByMetaHandle<const EntryKernel*>>;
-typedef std::set<
- std::unique_ptr<EntryKernel>,
- EntryKernelLessByMetaHandle<const std::unique_ptr<EntryKernel>&>>
- OwnedEntryKernelSet;
+using OwnedEntryKernelSet =
+ std::set<std::unique_ptr<EntryKernel>,
+ EntryKernelLessByMetaHandle<const std::unique_ptr<EntryKernel>&>>;
struct EntryKernelMutation {
EntryKernel original, mutated;
};
-typedef std::map<int64_t, EntryKernelMutation> EntryKernelMutationMap;
+using EntryKernelMutationMap = std::map<int64_t, EntryKernelMutation>;
-typedef Immutable<EntryKernelMutationMap> ImmutableEntryKernelMutationMap;
+using ImmutableEntryKernelMutationMap = Immutable<EntryKernelMutationMap>;
std::unique_ptr<base::DictionaryValue> EntryKernelMutationToValue(
const EntryKernelMutation& mutation);
« no previous file with comments | « components/sync/syncable/directory_backing_store.cc ('k') | components/sync/syncable/metahandle_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698