Chromium Code Reviews| Index: third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp |
| diff --git a/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp b/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp |
| index 5fc25ba79a6b3b5f87cc3162b0e86836b95a8979..fb8241d658cd6ec4575a5d97ec98614c00a79e22 100644 |
| --- a/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp |
| +++ b/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp |
| @@ -6,6 +6,7 @@ |
| #include "bindings/core/v8/SourceLocation.h" |
| #include "core/dom/Document.h" |
| +#include "core/dom/TaskRunnerHelper.h" |
| #include "core/frame/Deprecation.h" |
| #include "core/loader/DocumentLoader.h" |
| #include "core/loader/ThreadableLoadingContext.h" |
| @@ -73,7 +74,8 @@ void ThreadedMessagingProxyBase::PostTaskToWorkerGlobalScope( |
| return; |
| DCHECK(worker_thread_); |
| - worker_thread_->PostTask(location, std::move(task)); |
| + TaskRunnerHelper::Get(TaskType::kNetworking, worker_thread_.get()) |
|
haraken
2017/04/13 07:03:36
Why does this use kNetworking?
nhiroki
2017/04/13 08:23:50
Because this function (and PostTaskToLoader) imple
|
| + ->PostTask(location, std::move(task)); |
| } |
| void ThreadedMessagingProxyBase::PostTaskToLoader( |