| 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 897f5de67684a0f0d75ae81c19c0e6a1faa88568..d08013b0705bd07675c7fafcd6fe623ba90dcae1 100644
|
| --- a/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp
|
| +++ b/third_party/WebKit/Source/core/workers/ThreadedMessagingProxyBase.cpp
|
| @@ -74,9 +74,12 @@ void ThreadedMessagingProxyBase::postTaskToLoader(
|
| const WebTraceLocation& location,
|
| std::unique_ptr<ExecutionContextTask> task) {
|
| DCHECK(getExecutionContext()->isDocument());
|
| - // TODO(hiroshige,yuryu): Make this not use ExecutionContextTask and use
|
| - // m_parentFrameTaskRunners->get(TaskType::Networking) instead.
|
| - getExecutionContext()->postTask(location, std::move(task));
|
| + m_parentFrameTaskRunners->get(TaskType::Networking)
|
| + ->postTask(BLINK_FROM_HERE,
|
| + crossThreadBind(
|
| + &ExecutionContextTask::performTaskIfContextIsValid,
|
| + WTF::passed(std::move(task)),
|
| + wrapCrossThreadWeakPersistent(getExecutionContext())));
|
| }
|
|
|
| void ThreadedMessagingProxyBase::countFeature(UseCounter::Feature feature) {
|
|
|