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

Unified Diff: components/sync/syncable/syncable_delete_journal.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/parent_child_index.h ('k') | components/sync/syncable/write_transaction_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/syncable/syncable_delete_journal.h
diff --git a/components/sync/syncable/syncable_delete_journal.h b/components/sync/syncable/syncable_delete_journal.h
index f1b45fa86f6f4b82c1b938c434c4e94ec004c3ee..da2b4c15eb0d808eac9f69e9ace9ce9288aeaa5c 100644
--- a/components/sync/syncable/syncable_delete_journal.h
+++ b/components/sync/syncable/syncable_delete_journal.h
@@ -31,8 +31,8 @@ class LessByID {
// DeleteJournal::TakeSnapshotAndClear needs to remove the unique_ptr from the
// set, and std::set::extract is only available in C++17. TODO(avi): Switch to
// using a std::set when Chromium allows C++17 use.
-typedef std::map<const EntryKernel*, std::unique_ptr<EntryKernel>, LessByID>
- JournalIndex;
+using JournalIndex =
+ std::map<const EntryKernel*, std::unique_ptr<EntryKernel>, LessByID>;
// DeleteJournal manages deleted entries that are not in sync directory until
// it's safe to drop them after the deletion is confirmed with native models.
« no previous file with comments | « components/sync/syncable/parent_child_index.h ('k') | components/sync/syncable/write_transaction_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698