Chromium Code Reviews| 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..f638e30caa502c64a1ed1bffbd9d5733103ed1a5 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 |
| +} // std |
|
Łukasz Anforowicz
2017/04/24 18:46:10
Right - I was wondering why we couldn't do somethi
|
| #endif // BASE_TRACE_EVENT_HEAP_PROFILER_ALLOCATION_CONTEXT_H_ |