Index: content/app/content_main_runner.cc |
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc |
index 147b5a08846c9a88d441e4f492d8f131910211f5..9031761915cc89643c662a95ac1a64f76ac596d2 100644 |
--- a/content/app/content_main_runner.cc |
+++ b/content/app/content_main_runner.cc |
@@ -635,8 +635,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); |
} |