Commit a273f200 authored by Takuto Ikuta's avatar Takuto Ikuta Committed by Commit Bot

remove hash_multimap and hash_multiset

Bug: 576864
Change-Id: I3290cb0876f3ca84ec0efb13922b2756138b9492
Reviewed-on: https://chromium-review.googlesource.com/c/1369763Reviewed-by: default avatarMarc Treib <treib@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615463}
parent e065b573
...@@ -48,21 +48,6 @@ template <class Key, ...@@ -48,21 +48,6 @@ template <class Key,
class Alloc = std::allocator<std::pair<const Key, T>>> class Alloc = std::allocator<std::pair<const Key, T>>>
using hash_map = std::unordered_map<Key, T, Hash, Pred, Alloc>; using hash_map = std::unordered_map<Key, T, Hash, Pred, Alloc>;
// Use std::unordered_multimap instead.
template <class Key,
class T,
class Hash = BASE_HASH_NAMESPACE::hash<Key>,
class Pred = std::equal_to<Key>,
class Alloc = std::allocator<std::pair<const Key, T>>>
using hash_multimap = std::unordered_multimap<Key, T, Hash, Pred, Alloc>;
// Use std::unordered_multiset instead.
template <class Key,
class Hash = BASE_HASH_NAMESPACE::hash<Key>,
class Pred = std::equal_to<Key>,
class Alloc = std::allocator<Key>>
using hash_multiset = std::unordered_multiset<Key, Hash, Pred, Alloc>;
// Use std::unordered_set instead. // Use std::unordered_set instead.
template <class Key, template <class Key,
class Hash = BASE_HASH_NAMESPACE::hash<Key>, class Hash = BASE_HASH_NAMESPACE::hash<Key>,
......
...@@ -8,10 +8,10 @@ ...@@ -8,10 +8,10 @@
#include <stdint.h> #include <stdint.h>
#include <set> #include <set>
#include <unordered_map>
#include <utility> #include <utility>
#include "base/containers/flat_set.h" #include "base/containers/flat_set.h"
#include "base/containers/hash_tables.h"
#include "base/files/file_path.h" #include "base/files/file_path.h"
#include "base/json/json_file_value_serializer.h" #include "base/json/json_file_value_serializer.h"
#include "base/macros.h" #include "base/macros.h"
...@@ -74,9 +74,10 @@ GetBehaviorFromSafeSearchClassification( ...@@ -74,9 +74,10 @@ GetBehaviorFromSafeSearchClassification(
struct SupervisedUserURLFilter::Contents { struct SupervisedUserURLFilter::Contents {
URLMatcher url_matcher; URLMatcher url_matcher;
base::hash_multimap<HostnameHash, std::unordered_multimap<HostnameHash,
scoped_refptr<SupervisedUserSiteList>, scoped_refptr<SupervisedUserSiteList>,
HashHostnameHash> hostname_hashes; HashHostnameHash>
hostname_hashes;
// This only tracks pattern lists. // This only tracks pattern lists.
std::map<URLMatcherConditionSet::ID, scoped_refptr<SupervisedUserSiteList>> std::map<URLMatcherConditionSet::ID, scoped_refptr<SupervisedUserSiteList>>
site_lists_by_matcher_id; site_lists_by_matcher_id;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment