Index: content/browser/browser_thread_impl.cc |
diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc |
index 0814a3c9387f74b3215ab90d23aae429b71bf041..155160ba851d38a24d995b9449416975072af166 100644 |
--- a/content/browser/browser_thread_impl.cc |
+++ b/content/browser/browser_thread_impl.cc |
@@ -161,10 +161,11 @@ bool BrowserThreadImpl::PostTaskHelper( |
MessageLoop* message_loop = globals.threads[identifier] ? |
globals.threads[identifier]->message_loop() : NULL; |
if (message_loop) { |
+ base::TimeDelta delay = base::TimeDelta::FromMilliseconds(delay_ms); |
if (nestable) { |
- message_loop->PostDelayedTask(from_here, task, delay_ms); |
+ message_loop->PostDelayedTask(from_here, task, delay); |
} else { |
- message_loop->PostNonNestableDelayedTask(from_here, task, delay_ms); |
+ message_loop->PostNonNestableDelayedTask(from_here, task, delay); |
} |
} |