Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Unified Diff: third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp

Issue 1925583003: Replace AllowCrossThreadAccess() + non-GCed pointers with crossThreadUnretained() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Kuroneko_4
Patch Set: Rebase. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp b/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
index c640a4a6ae139af996329f988f9855e07a5d1b48..cdaf05210da35c5d79e60c11b65791c111ebe5f8 100644
--- a/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
@@ -138,7 +138,7 @@ void WorkerInspectorProxy::connectToInspector(WorkerInspectorProxy::PageInspecto
return;
DCHECK(!m_pageInspector);
m_pageInspector = pageInspector;
- m_workerThread->appendDebuggerTask(threadSafeBind(connectToWorkerGlobalScopeInspectorTask, AllowCrossThreadAccess(m_workerThread)));
+ m_workerThread->appendDebuggerTask(threadSafeBind(connectToWorkerGlobalScopeInspectorTask, crossThreadUnretained(m_workerThread)));
}
static void disconnectFromWorkerGlobalScopeInspectorTask(WorkerThread* workerThread)
@@ -152,7 +152,7 @@ void WorkerInspectorProxy::disconnectFromInspector(WorkerInspectorProxy::PageIns
DCHECK(m_pageInspector == pageInspector);
m_pageInspector = nullptr;
if (m_workerThread)
- m_workerThread->appendDebuggerTask(threadSafeBind(disconnectFromWorkerGlobalScopeInspectorTask, AllowCrossThreadAccess(m_workerThread)));
+ m_workerThread->appendDebuggerTask(threadSafeBind(disconnectFromWorkerGlobalScopeInspectorTask, crossThreadUnretained(m_workerThread)));
}
static void dispatchOnInspectorBackendTask(const String& message, WorkerThread* workerThread)
@@ -164,7 +164,7 @@ static void dispatchOnInspectorBackendTask(const String& message, WorkerThread*
void WorkerInspectorProxy::sendMessageToInspector(const String& message)
{
if (m_workerThread)
- m_workerThread->appendDebuggerTask(threadSafeBind(dispatchOnInspectorBackendTask, message, AllowCrossThreadAccess(m_workerThread)));
+ m_workerThread->appendDebuggerTask(threadSafeBind(dispatchOnInspectorBackendTask, message, crossThreadUnretained(m_workerThread)));
}
void WorkerInspectorProxy::writeTimelineStartedEvent(const String& sessionId)

Powered by Google App Engine
This is Rietveld 408576698