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

Unified Diff: base/trace_event/heap_profiler_event_filter.cc

Issue 2557743002: tracing: simplify lifetime of TraceEventFilter(s) (Closed)
Patch Set: rebase Created 4 years 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
Index: base/trace_event/heap_profiler_event_filter.cc
diff --git a/base/trace_event/heap_profiler_event_filter.cc b/base/trace_event/heap_profiler_event_filter.cc
index 6c91c91b136e2fe9720e31ee6a62bda5c19417e1..7418ad01b0add969e13edf62ba474957e82f6d8e 100644
--- a/base/trace_event/heap_profiler_event_filter.cc
+++ b/base/trace_event/heap_profiler_event_filter.cc
@@ -29,7 +29,9 @@ inline AllocationContextTracker* GetThreadLocalTracker() {
// static
const char HeapProfilerEventFilter::kName[] = "heap_profiler_predicate";
-HeapProfilerEventFilter::HeapProfilerEventFilter() {}
+HeapProfilerEventFilter::HeapProfilerEventFilter(
+ std::unique_ptr<TraceEventFilter::Config> base_filter_config)
+ : TraceEventFilter(std::move(base_filter_config)) {}
HeapProfilerEventFilter::~HeapProfilerEventFilter() {}
bool HeapProfilerEventFilter::FilterTraceEvent(

Powered by Google App Engine
This is Rietveld 408576698