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

Unified Diff: third_party/WebKit/Source/core/workers/Worker.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/Worker.cpp
diff --git a/third_party/WebKit/Source/core/workers/Worker.cpp b/third_party/WebKit/Source/core/workers/Worker.cpp
index a407d0944d42f48e45adb4ca8677eed7365c3a5e..8a245c2377bbadd3086df2ca0809bcc86da3227d 100644
--- a/third_party/WebKit/Source/core/workers/Worker.cpp
+++ b/third_party/WebKit/Source/core/workers/Worker.cpp
@@ -20,7 +20,7 @@ Worker::Worker(ExecutionContext* context)
Worker* Worker::create(ExecutionContext* context, const String& url, ExceptionState& exceptionState)
{
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
Document* document = toDocument(context);
UseCounter::count(context, UseCounter::WorkerStart);
if (!document->page()) {
@@ -35,7 +35,7 @@ Worker* Worker::create(ExecutionContext* context, const String& url, ExceptionSt
Worker::~Worker()
{
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
}
const AtomicString& Worker::interfaceName() const
@@ -47,7 +47,7 @@ InProcessWorkerGlobalScopeProxy* Worker::createInProcessWorkerGlobalScopeProxy(E
{
Document* document = toDocument(context);
DedicatedWorkerGlobalScopeProxyProvider* proxyProvider = DedicatedWorkerGlobalScopeProxyProvider::from(*document->page());
- ASSERT(proxyProvider);
+ DCHECK(proxyProvider);
return proxyProvider->createWorkerGlobalScopeProxy(this);
}
« no previous file with comments | « third_party/WebKit/Source/core/workers/SharedWorker.cpp ('k') | third_party/WebKit/Source/core/workers/WorkerBackingThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698