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

Unified Diff: third_party/WebKit/Source/core/loader/NavigationScheduler.cpp

Issue 2876513002: Use WTF::TimeDelta to specify delays on WebTaskRunner (Closed)
Patch Set: mac fix Created 3 years, 7 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
Index: third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
diff --git a/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp b/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
index 7d0935fca64e8f0b4234cf537e764ffd5958a81b..8a421693d8e50587057788634a8c729e6603e6af 100644
--- a/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
+++ b/third_party/WebKit/Source/core/loader/NavigationScheduler.cpp
@@ -540,7 +540,7 @@ void NavigationScheduler::StartTimer() {
BLINK_FROM_HERE,
WTF::Bind(&NavigationScheduler::NavigateTask,
WrapWeakPersistent(this)),
- redirect_->Delay() * 1000.0);
+ TimeDelta::FromSecondsD(redirect_->Delay()));
probe::frameScheduledNavigation(frame_, redirect_->Delay());
}

Powered by Google App Engine
This is Rietveld 408576698