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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerThread.cpp

Issue 2876513002: Use WTF::TimeDelta to specify delays on WebTaskRunner (Closed)
Patch Set: 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..37e593c71cca4386b7ca00d7f0018956bdb38a89 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_);
+ WTF::TimeDelta::FromMilliseconds(
+ forcible_termination_delay_in_ms_));
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698