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

Unified Diff: base/trace_event/heap_profiler_allocation_context.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/task/cancelable_task_tracker.cc ('k') | base/trace_event/heap_profiler_allocation_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/heap_profiler_allocation_context.h
diff --git a/base/trace_event/heap_profiler_allocation_context.h b/base/trace_event/heap_profiler_allocation_context.h
index 24e2dec73f1f48ff886c0eabe3d27e1604dcd48a..3d8053c9fb31ea3941155d662fcdacfd8e7fe47e 100644
--- a/base/trace_event/heap_profiler_allocation_context.h
+++ b/base/trace_event/heap_profiler_allocation_context.h
@@ -8,8 +8,9 @@
#include <stddef.h>
#include <stdint.h>
+#include <functional>
+
#include "base/base_export.h"
-#include "base/containers/hash_tables.h"
namespace base {
namespace trace_event {
@@ -109,7 +110,7 @@ struct AllocationMetrics {
} // namespace trace_event
} // namespace base
-namespace BASE_HASH_NAMESPACE {
+namespace std {
template <>
struct BASE_EXPORT hash<base::trace_event::StackFrame> {
@@ -126,6 +127,6 @@ struct BASE_EXPORT hash<base::trace_event::AllocationContext> {
size_t operator()(const base::trace_event::AllocationContext& context) const;
};
-} // BASE_HASH_NAMESPACE
+} // namespace std
#endif // BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_H_
« no previous file with comments | « base/task/cancelable_task_tracker.cc ('k') | base/trace_event/heap_profiler_allocation_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698