Index: base/trace_event/trace_log.cc |
diff --git a/base/trace_event/trace_log.cc b/base/trace_event/trace_log.cc |
index 5692e835bab88905786ba53616796c3ff086914c..1a375d146a9eb20582e7948677029c93c6a1842f 100644 |
--- a/base/trace_event/trace_log.cc |
+++ b/base/trace_event/trace_log.cc |
@@ -1319,8 +1319,7 @@ |
// TODO(primiano): Add support for events with copied name crbug.com/581078 |
if (!(flags & TRACE_EVENT_FLAG_COPY)) { |
- if (AllocationContextTracker::capture_mode() == |
- AllocationContextTracker::CaptureMode::PSEUDO_STACK) { |
+ if (AllocationContextTracker::capture_enabled()) { |
if (phase == TRACE_EVENT_PHASE_BEGIN || |
phase == TRACE_EVENT_PHASE_COMPLETE) { |
AllocationContextTracker::GetInstanceForCurrentThread() |
@@ -1453,10 +1452,9 @@ |
EventToConsoleMessage(TRACE_EVENT_PHASE_END, now, trace_event); |
} |
- if (AllocationContextTracker::capture_mode() == |
- AllocationContextTracker::CaptureMode::PSEUDO_STACK) { |
+ if (base::trace_event::AllocationContextTracker::capture_enabled()) { |
// The corresponding push is in |AddTraceEventWithThreadIdAndTimestamp|. |
- AllocationContextTracker::GetInstanceForCurrentThread() |
+ base::trace_event::AllocationContextTracker::GetInstanceForCurrentThread() |
->PopPseudoStackFrame(name); |
} |
} |