Index: components/safe_browsing_db/v4_get_hash_protocol_manager.h |
diff --git a/components/safe_browsing_db/v4_get_hash_protocol_manager.h b/components/safe_browsing_db/v4_get_hash_protocol_manager.h |
index 8a0f855da504051de934ce083b12ba1246e2802e..7d9c2c2aff17e9a3ef47812e0c1446ea7695b15d 100644 |
--- a/components/safe_browsing_db/v4_get_hash_protocol_manager.h |
+++ b/components/safe_browsing_db/v4_get_hash_protocol_manager.h |
@@ -14,6 +14,7 @@ |
#include <memory> |
#include <string> |
+#include <unordered_map> |
#include <utility> |
#include <vector> |
@@ -39,7 +40,7 @@ namespace safe_browsing { |
// The matching hash prefixes and corresponding stores, for each full hash |
// generated for a given URL. |
-typedef base::hash_map<FullHash, StoreAndHashPrefixes> |
+typedef std::unordered_map<FullHash, StoreAndHashPrefixes> |
FullHashToStoreAndHashPrefixesMap; |
// ---------------------------------------------------------------- |
@@ -90,7 +91,7 @@ struct CachedHashPrefixInfo { |
// Cached full hashes received from the server for the corresponding hash |
// prefixes. |
-typedef base::hash_map<HashPrefix, CachedHashPrefixInfo> FullHashCache; |
+typedef std::unordered_map<HashPrefix, CachedHashPrefixInfo> FullHashCache; |
// FullHashCallback is invoked when GetFullHashes completes. The parameter is |
// the vector of full hash results. If empty, indicates that there were no |
@@ -295,8 +296,8 @@ class V4GetHashProtocolManager : public net::URLFetcherDelegate, |
private: |
// Map of GetHash requests to parameters which created it. |
using PendingHashRequests = |
- base::hash_map<const net::URLFetcher*, |
- std::unique_ptr<FullHashCallbackInfo>>; |
+ std::unordered_map<const net::URLFetcher*, |
+ std::unique_ptr<FullHashCallbackInfo>>; |
// The factory that controls the creation of V4GetHashProtocolManager. |
// This is used by tests. |