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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp

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/iterators/SearchBuffer.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp b/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp
index 89388a871696a36e9c4cdb4d589a68a2ff3bc929..abb98558f9157656e1e021f7520071991312a466 100644
--- a/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp
@@ -40,7 +40,7 @@ namespace blink {
static const size_t minimumSearchBufferSize = 8192;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
static bool searcherInUse;
#endif
@@ -64,7 +64,7 @@ static UStringSearch* searcher()
static inline void lockSearcher()
{
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
DCHECK(!searcherInUse);
searcherInUse = true;
#endif
@@ -72,7 +72,7 @@ static inline void lockSearcher()
static inline void unlockSearcher()
{
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
DCHECK(searcherInUse);
searcherInUse = false;
#endif

Powered by Google App Engine
This is Rietveld 408576698