Index: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp |
index 34e5d93ea8635d5d58141610ed84d0692146738b..d58381fc25b7dc3bf8cc314ea8188aba66d34ae5 100644 |
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp |
@@ -224,7 +224,7 @@ void WebSharedWorkerImpl::reportConsoleMessage(ConsoleMessage*) |
void WebSharedWorkerImpl::postMessageToPageInspector(const String& message) |
{ |
- m_mainFrame->frame()->document()->postInspectorTask(BLINK_FROM_HERE, createCrossThreadTask(&WebSharedWorkerImpl::postMessageToPageInspectorOnMainThread, this, message)); |
+ m_mainFrame->frame()->document()->postInspectorTask(BLINK_FROM_HERE, createCrossThreadTask(&WebSharedWorkerImpl::postMessageToPageInspectorOnMainThread, AllowCrossThreadAccess(this), message)); |
} |
void WebSharedWorkerImpl::postMessageToPageInspectorOnMainThread(const String& message) |