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

Unified Diff: components/bookmarks/browser/titled_url_index.h

Issue 2883523002: Reduce the memory usage of bookmarks storage (Closed)
Patch Set: MakeUnique Created 3 years, 7 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/bookmarks/browser/bookmark_node.cc ('k') | components/bookmarks/browser/titled_url_index.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bookmarks/browser/titled_url_index.h
diff --git a/components/bookmarks/browser/titled_url_index.h b/components/bookmarks/browser/titled_url_index.h
index d6a0fbae8d33b6e3397103b6428422c9014d7b60..f6df5980d2e8a592f297c5bd71971f697f625d60 100644
--- a/components/bookmarks/browser/titled_url_index.h
+++ b/components/bookmarks/browser/titled_url_index.h
@@ -8,10 +8,10 @@
#include <stddef.h>
#include <map>
-#include <set>
#include <string>
#include <vector>
+#include "base/containers/flat_set.h"
#include "base/macros.h"
#include "base/strings/string16.h"
#include "components/query_parser/query_parser.h"
@@ -50,7 +50,7 @@ class TitledUrlIndex {
private:
using TitledUrlNodes = std::vector<const TitledUrlNode*>;
- using TitledUrlNodeSet = std::set<const TitledUrlNode*>;
+ using TitledUrlNodeSet = base::flat_set<const TitledUrlNode*>;
using Index = std::map<base::string16, TitledUrlNodeSet>;
// Constructs |sorted_nodes| by copying the matches in |matches| and sorting
« no previous file with comments | « components/bookmarks/browser/bookmark_node.cc ('k') | components/bookmarks/browser/titled_url_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698