Index: third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp |
diff --git a/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp b/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp |
index 322045ff9d0d74ff9a424546656b0cdee47509eb..65856875fad4c75b2283a1b7463106faf7ee2ac7 100644 |
--- a/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp |
+++ b/third_party/WebKit/Source/core/workers/WorkerOrWorkletGlobalScope.cpp |
@@ -5,7 +5,6 @@ |
#include "core/workers/WorkerOrWorkletGlobalScope.h" |
#include "core/dom/ExecutionContextTask.h" |
-#include "core/dom/TaskRunnerHelper.h" |
#include "core/frame/Deprecation.h" |
#include "core/inspector/ConsoleMessage.h" |
#include "core/probe/CoreProbes.h" |
@@ -19,7 +18,7 @@ |
WorkerOrWorkletGlobalScope::WorkerOrWorkletGlobalScope() |
: deprecation_warning_bits_(UseCounter::kNumberOfFeatures) {} |
-WorkerOrWorkletGlobalScope::~WorkerOrWorkletGlobalScope() = default; |
+WorkerOrWorkletGlobalScope::~WorkerOrWorkletGlobalScope() {} |
void WorkerOrWorkletGlobalScope::AddDeprecationMessage( |
UseCounter::Feature feature) { |
@@ -38,7 +37,7 @@ |
} |
void WorkerOrWorkletGlobalScope::PostTask( |
- TaskType type, |
+ TaskType, |
const WebTraceLocation& location, |
std::unique_ptr<ExecutionContextTask> task, |
const String& task_name_for_instrumentation) { |
@@ -50,11 +49,10 @@ |
probe::AsyncTaskScheduled(this, "Worker task", task.get()); |
} |
- TaskRunnerHelper::Get(type, this) |
- ->PostTask(location, CrossThreadBind(&WorkerOrWorkletGlobalScope::RunTask, |
- WrapCrossThreadWeakPersistent(this), |
- WTF::Passed(std::move(task)), |
- is_instrumented)); |
+ GetThread()->PostTask( |
+ location, CrossThreadBind(&WorkerOrWorkletGlobalScope::RunTask, |
+ WrapCrossThreadWeakPersistent(this), |
+ WTF::Passed(std::move(task)), is_instrumented)); |
} |
void WorkerOrWorkletGlobalScope::RunTask( |