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

Unified Diff: content/browser/trace_controller.cc

Issue 9572035: Convert uses of int ms to TimeDelta in content/browser, ipc, and webkit/plugins. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 10 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/browser/renderer_host/render_widget_host_unittest.cc ('k') | ipc/ipc_channel_posix_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_unittest.cc ('k') | ipc/ipc_channel_posix_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698