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

Unified Diff: chrome/test/base/tracing.cc

Issue 1165673002: [Startup Tracing] Hook up TraceConfig and remove CategoryFilter & TraceOptions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 months 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
« no previous file with comments | « chrome/browser/lifetime/application_lifetime.cc ('k') | components/feedback/tracing_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/tracing.cc
diff --git a/chrome/test/base/tracing.cc b/chrome/test/base/tracing.cc
index 2120b9f7d852c3e252e13a9384939d0df7bd79c6..c3280ce147ee7ef2807eb771497c1bc345a21fae 100644
--- a/chrome/test/base/tracing.cc
+++ b/chrome/test/base/tracing.cc
@@ -57,8 +57,7 @@ class InProcessTraceController {
bool BeginTracing(const std::string& category_patterns) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
return content::TracingController::GetInstance()->EnableRecording(
- base::trace_event::CategoryFilter(category_patterns),
- base::trace_event::TraceOptions(),
+ base::trace_event::TraceConfig(category_patterns, ""),
content::TracingController::EnableRecordingDoneCallback());
}
@@ -76,8 +75,7 @@ class InProcessTraceController {
return false;
}
if (!content::TracingController::GetInstance()->EnableRecording(
- base::trace_event::CategoryFilter(category_patterns),
- base::trace_event::TraceOptions(),
+ base::trace_event::TraceConfig(category_patterns, ""),
base::Bind(&InProcessTraceController::OnEnableTracingComplete,
base::Unretained(this)))) {
return false;
« no previous file with comments | « chrome/browser/lifetime/application_lifetime.cc ('k') | components/feedback/tracing_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698