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

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

Issue 1902683005: Worker: Replace ASSERT macros with DCHECK macros (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 8323d2be744edf4f0efa83a9f520c34471070a3c..073a59a34ad61c2ea4319089aa407160f09b6ede 100644
--- a/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerInspectorProxy.cpp
@@ -76,7 +76,7 @@ void WorkerInspectorProxy::workerThreadCreated(Document* document, WorkerThread*
void WorkerInspectorProxy::workerThreadTerminated()
{
if (m_workerThread) {
- ASSERT(inspectorProxies().contains(this));
+ DCHECK(inspectorProxies().contains(this));
inspectorProxies().remove(this);
InspectorInstrumentation::workerTerminated(m_document, this);
}
@@ -107,7 +107,7 @@ void WorkerInspectorProxy::connectToInspector(WorkerInspectorProxy::PageInspecto
{
if (!m_workerThread)
return;
- ASSERT(!m_pageInspector);
+ DCHECK(!m_pageInspector);
m_pageInspector = pageInspector;
m_workerThread->appendDebuggerTask(threadSafeBind(connectToWorkerGlobalScopeInspectorTask, AllowCrossThreadAccess(m_workerThread)));
}
@@ -120,7 +120,7 @@ static void disconnectFromWorkerGlobalScopeInspectorTask(WorkerThread* workerThr
void WorkerInspectorProxy::disconnectFromInspector(WorkerInspectorProxy::PageInspector* pageInspector)
{
- ASSERT(m_pageInspector == pageInspector);
+ DCHECK(m_pageInspector == pageInspector);
m_pageInspector = nullptr;
if (m_workerThread)
m_workerThread->appendDebuggerTask(threadSafeBind(disconnectFromWorkerGlobalScopeInspectorTask, AllowCrossThreadAccess(m_workerThread)));

Powered by Google App Engine
This is Rietveld 408576698