Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1930)

Unified Diff: base/trace_event/trace_event_memory_overhead.h

Issue 2830093003: Replace uses of hash_map in //base (Closed)
Patch Set: iOS Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/trace_event/process_memory_dump_unittest.cc ('k') | base/trace_event/trace_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_event_memory_overhead.h
diff --git a/base/trace_event/trace_event_memory_overhead.h b/base/trace_event/trace_event_memory_overhead.h
index a5d324e062be56bd61a0e878f51c99c4c4e93e1f..0d5769bdcd3e7516abeed45cc679947614ce6c34 100644
--- a/base/trace_event/trace_event_memory_overhead.h
+++ b/base/trace_event/trace_event_memory_overhead.h
@@ -7,6 +7,8 @@
#include <stddef.h>
+#include <unordered_map>
+
#include "base/base_export.h"
#include "base/containers/hash_tables.h"
#include "base/containers/small_map.h"
@@ -60,7 +62,8 @@ class BASE_EXPORT TraceEventMemoryOverhead {
size_t allocated_size_in_bytes;
size_t resident_size_in_bytes;
};
- using map_type = small_map<hash_map<const char*, ObjectCountAndSize>, 16>;
+ using map_type =
+ small_map<std::unordered_map<const char*, ObjectCountAndSize>, 16>;
map_type allocated_objects_;
void AddOrCreateInternal(const char* object_type,
« no previous file with comments | « base/trace_event/process_memory_dump_unittest.cc ('k') | base/trace_event/trace_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698