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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.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/InspectorCSSAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
index 581e0a26e0acd666583a8cbaa2d601118080486e..860263949c95db8053103d2b0aa982a08084f652 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
@@ -817,7 +817,7 @@ void InspectorCSSAgent::SetActiveStyleSheets(
for (CSSStyleSheet* css_style_sheet : removed_sheets) {
InspectorStyleSheet* inspector_style_sheet =
css_style_sheet_to_inspector_style_sheet_.at(css_style_sheet);
- ASSERT(inspector_style_sheet);
+ DCHECK(inspector_style_sheet);
document_css_style_sheets->erase(css_style_sheet);
if (id_to_inspector_style_sheet_.Contains(inspector_style_sheet->Id())) {
@@ -1423,7 +1423,7 @@ Response InspectorCSSAgent::setStyleTexts(
Member<StyleSheetAction> revert = actions.at(j);
DummyExceptionStateForTesting undo_exception_state;
revert->Undo(undo_exception_state);
- ASSERT(!undo_exception_state.HadException());
+ DCHECK(!undo_exception_state.HadException());
}
return Response::Error(
String::Format("Failed applying edit #%d: ", i) +

Powered by Google App Engine
This is Rietveld 408576698