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

Unified Diff: third_party/WebKit/Source/core/workers/SharedWorker.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/SharedWorker.cpp
diff --git a/third_party/WebKit/Source/core/workers/SharedWorker.cpp b/third_party/WebKit/Source/core/workers/SharedWorker.cpp
index 7652a048d6025d5da5a968231f25d872196b0035..b0004f3c7a4d09fd4958877560f2497215dd71e2 100644
--- a/third_party/WebKit/Source/core/workers/SharedWorker.cpp
+++ b/third_party/WebKit/Source/core/workers/SharedWorker.cpp
@@ -56,8 +56,8 @@ inline SharedWorker::SharedWorker(ExecutionContext* context)
SharedWorker* SharedWorker::create(ExecutionContext* context, const String& url, const String& name, ExceptionState& exceptionState)
{
- ASSERT(isMainThread());
- ASSERT_WITH_SECURITY_IMPLICATION(context->isDocument());
+ DCHECK(isMainThread());
+ SECURITY_DCHECK(context->isDocument());
UseCounter::count(context, UseCounter::SharedWorkerStart);
@@ -66,7 +66,7 @@ SharedWorker* SharedWorker::create(ExecutionContext* context, const String& url,
MessageChannel* channel = MessageChannel::create(context);
worker->m_port = channel->port1();
OwnPtr<WebMessagePortChannel> remotePort = channel->port2()->disentangle();
- ASSERT(remotePort);
+ DCHECK(remotePort);
worker->suspendIfNeeded();

Powered by Google App Engine
This is Rietveld 408576698