Index: third_party/WebKit/Source/platform/Timer.cpp |
diff --git a/third_party/WebKit/Source/platform/Timer.cpp b/third_party/WebKit/Source/platform/Timer.cpp |
index 5f543f0ff20b03ce8cc185ce618eac90807408cd..a1612d500de21ccf86b297c9e4f369a425b85fbd 100644 |
--- a/third_party/WebKit/Source/platform/Timer.cpp |
+++ b/third_party/WebKit/Source/platform/Timer.cpp |
@@ -137,11 +137,10 @@ void TimerBase::SetNextFireTime(double now, double delay) { |
// Cancel any previously posted task. |
weak_ptr_factory_.RevokeAll(); |
- double delay_ms = 1000.0 * delay; |
- TimerTaskRunner()->PostDelayedTask( |
+ TimerTaskRunner()->ToSingleThreadTaskRunner()->PostDelayedTask( |
location_, |
base::Bind(&TimerBase::RunInternal, weak_ptr_factory_.CreateWeakPtr()), |
- delay_ms); |
+ TimeDelta::FromSecondsD(delay)); |
} |
} |