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

Unified Diff: third_party/WebKit/Source/core/editing/commands/EditingState.h

Issue 2082503003: ASSERT -> DCHECK conversions in core/editing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/editing/commands/EditingState.h
diff --git a/third_party/WebKit/Source/core/editing/commands/EditingState.h b/third_party/WebKit/Source/core/editing/commands/EditingState.h
index ab20a8784c2cdd9f40ffce75cd5be23e32771903..64c59279da93206ee3ee011998d82a063cace04b 100644
--- a/third_party/WebKit/Source/core/editing/commands/EditingState.h
+++ b/third_party/WebKit/Source/core/editing/commands/EditingState.h
@@ -61,7 +61,7 @@ private:
} \
} while (false)
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
// This class is inspired by |NoExceptionStateAssertionChecker|.
class NoEditingAbortChecker final {
STACK_ALLOCATED();
@@ -81,7 +81,7 @@ private:
// If a function with EditingState* argument should not be aborted,
// ASSERT_NO_EDITING_ABORT should be specified.
// fooFunc(...., ASSERT_NO_EDITING_ABORT);
-// It causes an assertion failure If ENABLE(ASSERT) and the function was aborted
+// It causes an assertion failure If DCHECK_IS_ON() and the function was aborted
// unexpectedly.
#define ASSERT_NO_EDITING_ABORT (NoEditingAbortChecker(__FILE__, __LINE__).editingState())
#else

Powered by Google App Engine
This is Rietveld 408576698