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

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

Issue 2858963002: Replace ASSERT with DCHECK in core/ (Closed)
Patch Set: WorkerBackingThread 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/InspectorDOMDebuggerAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
index 26709a03210fbdfec308d89279ffa3e8b51afac4..8c087615c7a6679189be068f61c8fab55391dc98 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp
@@ -556,7 +556,7 @@ void InspectorDOMDebuggerAgent::BreakProgramOnDOMEvent(Node* target,
// Find breakpoint owner node.
if (!insertion)
breakpoint_owner = InspectorDOMAgent::InnerParentNode(target);
- ASSERT(breakpoint_owner);
+ DCHECK(breakpoint_owner);
while (!(dom_breakpoints_.at(breakpoint_owner) & (1 << breakpoint_type))) {
Node* parent_node = InspectorDOMAgent::InnerParentNode(breakpoint_owner);
if (!parent_node)
@@ -569,7 +569,7 @@ void InspectorDOMDebuggerAgent::BreakProgramOnDOMEvent(Node* target,
}
int breakpoint_owner_node_id = dom_agent_->BoundNodeId(breakpoint_owner);
- ASSERT(breakpoint_owner_node_id);
+ DCHECK(breakpoint_owner_node_id);
description->setInteger("nodeId", breakpoint_owner_node_id);
description->setString("type", DomTypeName(breakpoint_type));
String json = description->serialize();

Powered by Google App Engine
This is Rietveld 408576698