Chromium Code Reviews| 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*>; |
|
sky
2017/05/12 20:00:13
I'm worried about using flat_set here as there is
ssid
2017/05/25 00:27:27
The flat_set uses a std::vector as backing type. S
sky
2017/05/25 02:54:02
My question is that the data populating these sets
ssid
2017/05/26 01:45:40
The uma for the number of bookmarks used:
https://
|
| using Index = std::map<base::string16, TitledUrlNodeSet>; |
| // Constructs |sorted_nodes| by copying the matches in |matches| and sorting |