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

Unified Diff: components/omnibox/browser/url_index_private_data.h

Issue 2333253002: flat containers prototype (Closed)
Patch Set: Fixing performance bug in insert(It, It) Created 4 years, 1 month 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
Index: components/omnibox/browser/url_index_private_data.h
diff --git a/components/omnibox/browser/url_index_private_data.h b/components/omnibox/browser/url_index_private_data.h
index 50bcf4b7ebc141548414f53a4b833f35de5717db..5bbcae5053940b6b8cbad8ade4c738e185c4fb50 100644
--- a/components/omnibox/browser/url_index_private_data.h
+++ b/components/omnibox/browser/url_index_private_data.h
@@ -187,7 +187,8 @@ class URLIndexPrivateData
HistoryIDSet history_id_set_;
bool used_; // True if this item has been used for the current term search.
};
- typedef std::map<base::string16, SearchTermCacheItem> SearchTermCacheMap;
+ typedef base::flat_map<base::string16, SearchTermCacheItem>
+ SearchTermCacheMap;
// A helper predicate class used to filter excess history items when the
// candidate results set is too large.

Powered by Google App Engine
This is Rietveld 408576698