Index: third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp |
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp |
index efc696f2a2721380b85f538ecfab83a5333a8eaa..666dd485f9ace67a99d4565d0df7a3507b971d48 100644 |
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp |
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp |
@@ -144,7 +144,7 @@ void InProcessWorkerMessagingProxy::postMessageToWorkerGlobalScope(PassRefPtr<Se |
if (m_askedToTerminate) |
return; |
- std::unique_ptr<ExecutionContextTask> task = createCrossThreadTask(&processMessageOnWorkerGlobalScope, message, passed(std::move(channels)), AllowCrossThreadAccess(&workerObjectProxy())); |
+ std::unique_ptr<ExecutionContextTask> task = createCrossThreadTask(&processMessageOnWorkerGlobalScope, message, passed(std::move(channels)), crossThreadUnretained(&workerObjectProxy())); |
if (m_workerThread) { |
++m_unconfirmedMessageCount; |
m_workerThread->postTask(BLINK_FROM_HERE, std::move(task)); |
@@ -221,7 +221,7 @@ void InProcessWorkerMessagingProxy::workerObjectDestroyed() |
// cleared before this method gets called. |
DCHECK(!m_workerObject); |
- getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&InProcessWorkerMessagingProxy::workerObjectDestroyedInternal, AllowCrossThreadAccess(this))); |
+ getExecutionContext()->postTask(BLINK_FROM_HERE, createCrossThreadTask(&InProcessWorkerMessagingProxy::workerObjectDestroyedInternal, crossThreadUnretained(this))); |
} |
void InProcessWorkerMessagingProxy::workerObjectDestroyedInternal() |