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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerThread.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/workers/WorkerThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.cpp b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
index 8bb885992dd550f7c8e8a067771169a5749a97f7..e35a0aa7e1b4c994cbc6f2815e2ea7dc503045ad 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
@@ -348,7 +348,8 @@ void WorkerThread::TerminateInternal(TerminationMode mode) {
BLINK_FROM_HERE,
WTF::Bind(&WorkerThread::MayForciblyTerminateExecution,
WTF::Unretained(this)),
- forcible_termination_delay_in_ms_);
+ TimeDelta::FromMilliseconds(
+ forcible_termination_delay_in_ms_));
break;
}
}
« no previous file with comments | « third_party/WebKit/Source/core/loader/NavigationScheduler.cpp ('k') | third_party/WebKit/Source/platform/Timer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698