Replace base::hash_map with std::unordered_map
base::hash_map is alias of std::unordered_map now.
I applied following command to make this CL.
$ git grep -l 'base::hash_map' | fgrep -v base/ | xargs sed -i -e 's/base::hash_map/std::unordered_set/g' -e 's/\(#include <[a-z_]*>\)/\1\n#include <unordered_map>/' -e 's/BASE_HASH_NAMESPACE/std/'
$ git cl format
$ # Added IntPairHash and replaced BASE_HASH_NAMESPACE with std in some places.
TBR: [email protected]
Bug: 576864
Change-Id: I38941d9f9bcb05ec474b8dee5230c4c5dcd2211f
Reviewed-on: https://chromium-review.googlesource.com/c/1390892
Commit-Queue: Takuto Ikuta <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Cr-Commit-Position: refs/heads/master@{#620124}
diff --git a/ipc/ipc_logging.h b/ipc/ipc_logging.h
index eee32f6..3b3b4ca 100644
--- a/ipc/ipc_logging.h
+++ b/ipc/ipc_logging.h
@@ -10,6 +10,7 @@
#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
#include <stdint.h>
+#include <unordered_map>
#include <vector>
#include "base/component_export.h"
@@ -25,7 +26,7 @@
const IPC::Message* msg,
std::string* params);
-typedef base::hash_map<uint32_t, LogFunction > LogFunctionMap;
+typedef std::unordered_map<uint32_t, LogFunction> LogFunctionMap;
namespace IPC {