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

Unified Diff: third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.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/modules/time_zone_monitor/TimeZoneMonitorClient.cpp
diff --git a/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp b/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp
index 77d3ec4cb5fe385707a49ed0958e52aaf87ed31f..b5704a7dbd4387822a800d6e9b3d15e17a685d3f 100644
--- a/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp
+++ b/third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp
@@ -7,7 +7,6 @@
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8PerIsolateData.h"
#include "core/dom/ExecutionContext.h"
-#include "core/dom/TaskRunnerHelper.h"
#include "core/workers/WorkerBackingThread.h"
#include "core/workers/WorkerOrWorkletGlobalScope.h"
#include "core/workers/WorkerThread.h"
@@ -71,10 +70,9 @@
// among multiple WorkerThreads.
if (posted.Contains(&thread->GetWorkerBackingThread()))
continue;
- TaskRunnerHelper::Get(TaskType::kUnspecedTimer, thread)
- ->PostTask(BLINK_FROM_HERE,
- CrossThreadBind(&NotifyTimezoneChangeOnWorkerThread,
- WTF::CrossThreadUnretained(thread)));
+ thread->PostTask(BLINK_FROM_HERE,
+ CrossThreadBind(&NotifyTimezoneChangeOnWorkerThread,
+ WTF::CrossThreadUnretained(thread)));
posted.insert(&thread->GetWorkerBackingThread());
}
}

Powered by Google App Engine
This is Rietveld 408576698