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..b79bbd16dd92887f70702b8ab939331a13402acf 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); |
+ WTF::TimeDelta::FromSecondsD(delay)); |
} |
} |