Index: base/message_loop_proxy_impl.cc |
diff --git a/base/message_loop_proxy_impl.cc b/base/message_loop_proxy_impl.cc |
index e0ecd89ae016ed9e09fe02dd3068ed4c7e40d8b5..dd20b39dd34a36e10c4832d9528fdccfa21e28d8 100644 |
--- a/base/message_loop_proxy_impl.cc |
+++ b/base/message_loop_proxy_impl.cc |
@@ -81,11 +81,11 @@ bool MessageLoopProxyImpl::PostTaskHelper( |
int64 delay_ms, bool nestable) { |
AutoLock lock(message_loop_lock_); |
if (target_message_loop_) { |
+ base::TimeDelta delay = base::TimeDelta::FromMilliseconds(delay_ms); |
if (nestable) { |
- target_message_loop_->PostDelayedTask(from_here, task, delay_ms); |
+ target_message_loop_->PostDelayedTask(from_here, task, delay); |
} else { |
- target_message_loop_->PostNonNestableDelayedTask(from_here, task, |
- delay_ms); |
+ target_message_loop_->PostNonNestableDelayedTask(from_here, task, delay); |
} |
return true; |
} |