| Index: base/trace_event/heap_profiler.h
|
| diff --git a/base/trace_event/heap_profiler.h b/base/trace_event/heap_profiler.h
|
| index 3ac16cd53b0d5ae2270aa5d1cb41152842bd58a9..dd587e5e4c72ea40fbfb2bb353dd0052b8688b34 100644
|
| --- a/base/trace_event/heap_profiler.h
|
| +++ b/base/trace_event/heap_profiler.h
|
| @@ -33,20 +33,16 @@
|
| class BASE_EXPORT HeapProfilerScopedIgnore {
|
| public:
|
| inline HeapProfilerScopedIgnore() {
|
| - using base::trace_event::AllocationContextTracker;
|
| if (UNLIKELY(
|
| - AllocationContextTracker::capture_mode() !=
|
| - AllocationContextTracker::CaptureMode::DISABLED)) {
|
| - AllocationContextTracker::GetInstanceForCurrentThread()
|
| + base::trace_event::AllocationContextTracker::capture_enabled())) {
|
| + base::trace_event::AllocationContextTracker::GetInstanceForCurrentThread()
|
| ->begin_ignore_scope();
|
| }
|
| }
|
| inline ~HeapProfilerScopedIgnore() {
|
| - using base::trace_event::AllocationContextTracker;
|
| if (UNLIKELY(
|
| - AllocationContextTracker::capture_mode() !=
|
| - AllocationContextTracker::CaptureMode::DISABLED)) {
|
| - AllocationContextTracker::GetInstanceForCurrentThread()
|
| + base::trace_event::AllocationContextTracker::capture_enabled())) {
|
| + base::trace_event::AllocationContextTracker::GetInstanceForCurrentThread()
|
| ->end_ignore_scope();
|
| }
|
| }
|
|
|