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

Unified Diff: content/public/test/browser_test_base.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 | « content/public/browser/tracing_controller.h ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/browser_test_base.cc
diff --git a/content/public/test/browser_test_base.cc b/content/public/test/browser_test_base.cc
index ad9ed08c32d471120aafa5853422da796ef86b76..9892f2e3d68b823aa15d6177cc89c4a6f6c4392d 100644
--- a/content/public/test/browser_test_base.cc
+++ b/content/public/test/browser_test_base.cc
@@ -283,12 +283,12 @@ void BrowserTestBase::ProxyRunTestOnMainThreadLoop() {
if (base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableTracing)) {
- base::trace_event::CategoryFilter category_filter(
+ base::trace_event::TraceConfig trace_config(
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kEnableTracing));
+ switches::kEnableTracing),
+ base::trace_event::RECORD_CONTINUOUSLY);
TracingController::GetInstance()->EnableRecording(
- category_filter,
- base::trace_event::TraceOptions(base::trace_event::RECORD_CONTINUOUSLY),
+ trace_config,
TracingController::EnableRecordingDoneCallback());
}
« no previous file with comments | « content/public/browser/tracing_controller.h ('k') | content/renderer/devtools/devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698