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

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

Issue 2831843002: Revert of Worker: Introduce per-global-scope task scheduler (Closed)
Patch Set: Created 3 years, 8 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/WorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
index 1447ae5df91dab9017f9730ac4da181caf037b08..ef1511b306766716f3c2ecf2dac512d44824e2b3 100644
--- a/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp
@@ -317,7 +317,8 @@
closing_(false),
event_queue_(WorkerEventQueue::Create(this)),
worker_clients_(worker_clients),
- timers_(TaskRunnerHelper::Get(TaskType::kTimer, this)),
+ timers_(
+ Platform::Current()->CurrentThread()->Scheduler()->TimerTaskRunner()),
time_origin_(time_origin),
last_pending_error_event_id_(0) {
InstanceCounters::IncrementCounter(

Powered by Google App Engine
This is Rietveld 408576698