Chromium Code Reviews| 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..54bc980e83fd65163630a613a2978d2b414e7a68 100644 |
| --- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
| +++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp |
| @@ -34,6 +34,7 @@ |
| #include "bindings/core/v8/SourceLocation.h" |
| #include "core/dom/Document.h" |
| #include "core/dom/SecurityContext.h" |
| +#include "core/dom/TaskRunnerHelper.h" |
| #include "core/frame/csp/ContentSecurityPolicy.h" |
| #include "core/inspector/ConsoleMessage.h" |
| #include "core/loader/FrameLoadRequest.h" |
| @@ -274,7 +275,8 @@ void WebEmbeddedWorkerImpl::PostTaskToWorkerGlobalScope( |
| std::unique_ptr<WTF::CrossThreadClosure> task) { |
| if (asked_to_terminate_ || !worker_thread_) |
| return; |
| - worker_thread_->PostTask(location, std::move(task)); |
| + TaskRunnerHelper::Get(TaskType::kNetworking, worker_thread_.get()) |
|
haraken
2017/04/17 14:49:52
If we want to use kNetworking, I think we should r
kinuko
2017/04/17 15:55:19
(I believe we're deprecating / cleaning up this.
nhiroki
2017/04/18 05:34:38
Yes, these will be removed by a follow-up CL:
http
|
| + ->PostTask(location, std::move(task)); |
| } |
| ThreadableLoadingContext* WebEmbeddedWorkerImpl::GetThreadableLoadingContext() { |