Index: content/browser/trace_controller.cc |
diff --git a/content/browser/trace_controller.cc b/content/browser/trace_controller.cc |
index 41770cd3ef7d13c73f762f59e561e6f94fe228ae..3c669b4f8a464380871b9eb646a0df7d25db8c73 100644 |
--- a/content/browser/trace_controller.cc |
+++ b/content/browser/trace_controller.cc |
@@ -97,10 +97,12 @@ void TraceController::InitStartupTracing(const CommandLine& command_line) { |
} |
OnTracingBegan(subscriber.get()); |
- BrowserThread::PostDelayedTask(BrowserThread::UI, FROM_HERE, |
+ BrowserThread::PostDelayedTask( |
+ BrowserThread::UI, |
+ FROM_HERE, |
base::Bind(&AutoStopTraceSubscriberStdio::EndStartupTrace, |
base::Unretained(subscriber.release())), |
- delay_secs * 1000); |
+ base::TimeDelta::FromSeconds(delay_secs)); |
} |
bool TraceController::GetKnownCategoriesAsync(TraceSubscriber* subscriber) { |