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