Index: content/app/content_main_runner.cc |
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc |
index 50930fa44f8cf4ee6aeb1472b345b8ac9e0bd5e1..de280c1f90b4404dfd97a95ff0ae2dc7fd0573e0 100644 |
--- a/content/app/content_main_runner.cc |
+++ b/content/app/content_main_runner.cc |
@@ -640,8 +640,10 @@ class ContentMainRunnerImpl : public ContentMainRunner { |
// Enable startup tracing asap to avoid early TRACE_EVENT calls being |
// ignored. |
if (command_line.HasSwitch(switches::kTraceStartup)) { |
+ base::debug::CategoryFilter category_filter( |
+ command_line.GetSwitchValueASCII(switches::kTraceStartup)); |
base::debug::TraceLog::GetInstance()->SetEnabled( |
- command_line.GetSwitchValueASCII(switches::kTraceStartup), |
+ category_filter, |
base::debug::TraceLog::RECORD_UNTIL_FULL); |
} |