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

Unified Diff: base/trace_event/trace_config.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/trace_config.cc
diff --git a/base/trace_event/trace_config.cc b/base/trace_event/trace_config.cc
index 9891ab62049d8ede499bda5757df1740688118f2..b7520e184fa90ce918f80ae025a951da75a13f6f 100644
--- a/base/trace_event/trace_config.cc
+++ b/base/trace_event/trace_config.cc
@@ -207,6 +207,11 @@ bool TraceConfig::EventFilterConfig::IsCategoryGroupEnabled(
return false;
}
+bool TraceConfig::EventFilterConfig::IsEnabledForCategory(
+ const char* category_name) const {
+ return IsCategoryGroupEnabled(category_name);
+}
+
TraceConfig::TraceConfig() {
InitializeDefault();
}

Powered by Google App Engine
This is Rietveld 408576698