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

Unified Diff: third_party/WebKit/Source/core/frame/FrameHost.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/frame/FrameHost.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameHost.cpp b/third_party/WebKit/Source/core/frame/FrameHost.cpp
index 9ca7e6d8920da56a59fac1a6a21b73f2e792b6d4..ac2dae81ba519e71df74a365b5da0c099c16bbf7 100644
--- a/third_party/WebKit/Source/core/frame/FrameHost.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameHost.cpp
@@ -173,7 +173,7 @@ DEFINE_TRACE(FrameHost) {
visitor->trace(m_globalRootScrollerController);
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
void checkFrameCountConsistency(int expectedFrameCount, Frame* frame) {
ASSERT(expectedFrameCount >= 0);
@@ -186,7 +186,7 @@ void checkFrameCountConsistency(int expectedFrameCount, Frame* frame) {
#endif
int FrameHost::subframeCount() const {
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
checkFrameCountConsistency(m_subframeCount + 1, m_page->mainFrame());
#endif
return m_subframeCount;

Powered by Google App Engine
This is Rietveld 408576698