Replace uses of hash_map in //base
base::hash_map is deprecated in favor of std::unordered_map (which it is a
typedef of).
The changes to tracing required updating of callers in third_party/WebKit.
Some uses were replaced with more appropriate variants: std::map,
base::flat_map, and base::small_map.
A std::hash implementation of base::FilePath is added.
BUG=576864
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Review-Url: https://codereview.chromium.org/2830093003
Cr-Commit-Position: refs/heads/master@{#467761}
diff --git a/base/trace_event/malloc_dump_provider.cc b/base/trace_event/malloc_dump_provider.cc
index 7f27060..3a40172 100644
--- a/base/trace_event/malloc_dump_provider.cc
+++ b/base/trace_event/malloc_dump_provider.cc
@@ -6,6 +6,8 @@
#include <stddef.h>
+#include <unordered_map>
+
#include "base/allocator/allocator_extension.h"
#include "base/allocator/allocator_shim.h"
#include "base/allocator/features.h"
@@ -296,7 +298,7 @@
// profiler does not see unabalanced malloc/free calls from these containers.
{
TraceEventMemoryOverhead overhead;
- hash_map<AllocationContext, AllocationMetrics> metrics_by_context;
+ std::unordered_map<AllocationContext, AllocationMetrics> metrics_by_context;
{
AutoLock lock(allocation_register_lock_);
if (allocation_register_) {