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

Unified Diff: third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp

Issue 2873293002: Replace ASSERT with DCHECK_EQ as appropriate (Closed)
Patch Set: rebase Created 3 years, 7 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/inspector/MainThreadDebugger.cpp
diff --git a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
index 8a7330ed1f773c8433db806ab5caaef36b5556d4..b032703e1b129dcbe87564805d3159b24c900459 100644
--- a/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
+++ b/third_party/WebKit/Source/core/inspector/MainThreadDebugger.cpp
@@ -106,7 +106,7 @@ MainThreadDebugger::MainThreadDebugger(v8::Isolate* isolate)
MainThreadDebugger::~MainThreadDebugger() {
MutexLocker locker(CreationMutex());
- ASSERT(instance_ == this);
+ DCHECK_EQ(instance_, this);
instance_ = nullptr;
}
@@ -242,7 +242,7 @@ void MainThreadDebugger::runMessageLoopOnPause(int context_group_id) {
// Do not pause in Context of detached frame.
if (!paused_frame)
return;
- ASSERT(paused_frame == paused_frame->LocalFrameRoot());
+ DCHECK(paused_frame == paused_frame->LocalFrameRoot());
paused_ = true;
if (UserGestureToken* token = UserGestureIndicator::CurrentToken())

Powered by Google App Engine
This is Rietveld 408576698