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

Unified Diff: components/sync_bookmarks/bookmark_model_associator.cc

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_bookmarks/bookmark_model_associator.h ('k') | components/sync_sessions/favicon_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_bookmarks/bookmark_model_associator.cc
diff --git a/components/sync_bookmarks/bookmark_model_associator.cc b/components/sync_bookmarks/bookmark_model_associator.cc
index 66e8a41ed1866eae98feddf10ba9c7e533f8f990..2305bb1fd9b14de368c399124c93495d149d0b43 100644
--- a/components/sync_bookmarks/bookmark_model_associator.cc
+++ b/components/sync_bookmarks/bookmark_model_associator.cc
@@ -94,10 +94,9 @@ class BookmarkNodeFinder {
// Maps bookmark node titles to instances, duplicates allowed.
// Titles are converted to the sync internal format before
// being used as keys for the map.
- typedef base::hash_multimap<std::string,
- const BookmarkNode*> BookmarkNodeMap;
- typedef std::pair<BookmarkNodeMap::iterator,
- BookmarkNodeMap::iterator> BookmarkNodeRange;
+ using BookmarkNodeMap = base::hash_multimap<std::string, const BookmarkNode*>;
+ using BookmarkNodeRange =
+ std::pair<BookmarkNodeMap::iterator, BookmarkNodeMap::iterator>;
// Converts and truncates bookmark titles in the form sync does internally
// to avoid mismatches due to sync munging titles.
@@ -801,7 +800,7 @@ struct FolderInfo {
const BookmarkNode* parent;
int64_t sync_id;
};
-typedef std::vector<FolderInfo> FolderInfoList;
+using FolderInfoList = std::vector<FolderInfo>;
void BookmarkModelAssociator::ApplyDeletesFromSyncJournal(
syncer::BaseTransaction* trans,
« no previous file with comments | « components/sync_bookmarks/bookmark_model_associator.h ('k') | components/sync_sessions/favicon_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698