Index: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
index 6acd6833d14aa1989cea9188bbb255a3c6f07ea9..52644c12540dfe68a4134db5f0343ead2b08e871 100644 |
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
@@ -45,6 +45,7 @@ |
#include "core/workers/WorkerInspectorProxy.h" |
#include "core/workers/WorkerLoaderProxy.h" |
#include "core/workers/WorkerScriptLoader.h" |
+#include "core/workers/WorkerTaskRunners.h" |
#include "core/workers/WorkerThreadStartupData.h" |
#include "modules/serviceworkers/ServiceWorkerContainerClient.h" |
#include "modules/serviceworkers/ServiceWorkerThread.h" |
@@ -274,7 +275,9 @@ void WebEmbeddedWorkerImpl::PostTaskToWorkerGlobalScope( |
std::unique_ptr<WTF::CrossThreadClosure> task) { |
if (asked_to_terminate_ || !worker_thread_) |
return; |
- worker_thread_->PostTask(location, std::move(task)); |
+ worker_thread_->GetWorkerTaskRunners() |
+ ->Get(TaskType::kNetworking) |
+ ->PostTask(location, std::move(task)); |
} |
ThreadableLoadingContext* WebEmbeddedWorkerImpl::GetThreadableLoadingContext() { |