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

Unified Diff: third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: Created 3 years, 11 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/html/parser/BackgroundHTMLParser.cpp
diff --git a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
index 2c9759fc1312640eeb66055b6401d6f147ddfaeb..fd0869762a217eeeb31b0e5fbae05cc96a8ce2a4 100644
--- a/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
+++ b/third_party/WebKit/Source/core/html/parser/BackgroundHTMLParser.cpp
@@ -64,7 +64,7 @@ static const size_t defaultPendingTokenLimit = 1000;
using namespace HTMLNames;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
static void checkThatTokensAreSafeToSendToAnotherThread(
const CompactHTMLTokenStream* tokens) {
@@ -319,7 +319,7 @@ bool BackgroundHTMLParser::queueChunkForMainThread() {
if (m_pendingTokens->isEmpty())
return false;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
checkThatTokensAreSafeToSendToAnotherThread(m_pendingTokens.get());
checkThatPreloadsAreSafeToSendToAnotherThread(m_pendingPreloads);
checkThatXSSInfosAreSafeToSendToAnotherThread(m_pendingXSSInfos);

Powered by Google App Engine
This is Rietveld 408576698