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

Unified Diff: third_party/WebKit/Source/platform/heap/PersistentNode.cpp

Issue 2530493002: WebKit: make #if DCHECK_IS_ON consistent in third_party/WebKit/Source/platform/ (Closed)
Patch Set: Created 4 years, 1 month 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/platform/heap/PersistentNode.cpp
diff --git a/third_party/WebKit/Source/platform/heap/PersistentNode.cpp b/third_party/WebKit/Source/platform/heap/PersistentNode.cpp
index ffb23221c04ba02f0594a9d9f46a29f23e8894d9..3cb1821980c5530b49d00f6458b7c736b5d57df1 100644
--- a/third_party/WebKit/Source/platform/heap/PersistentNode.cpp
+++ b/third_party/WebKit/Source/platform/heap/PersistentNode.cpp
@@ -34,7 +34,9 @@ int PersistentRegion::numberOfPersistents() {
++persistentCount;
}
}
- ASSERT(persistentCount == m_persistentCount);
+#if DCHECK_IS_ON()
+ DCHECK_EQ(persistentCount, m_persistentCount);
+#endif
return persistentCount;
}

Powered by Google App Engine
This is Rietveld 408576698