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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h

Issue 2585673002: Replace ASSERT, ENABLE(ASSERT), and ASSERT_NOT_REACHED in wtf (Closed)
Patch Set: Fix an Asan issue with LinkedHashSetNodeBase::unlink Created 4 years 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/wtf/typed_arrays/ArrayBufferContents.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h
index d7c9e1f647e36c3bf78b27bd11592afb44998d9c..0a76b93d95a12851e813d4bbc74ce740dec6a759 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.h
@@ -128,7 +128,7 @@ class WTF_EXPORT ArrayBufferContents {
void checkIfAdjustAmountOfExternalAllocatedMemoryIsConsistent() {
DCHECK(s_adjustAmountOfExternalAllocatedMemoryFunction);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
// Make sure that the function actually used is always the same.
// Shouldn't be updated during its use.
if (!s_lastUsedAdjustAmountOfExternalAllocatedMemoryFunction) {
@@ -148,7 +148,7 @@ class WTF_EXPORT ArrayBufferContents {
RefPtr<DataHolder> m_holder;
static AdjustAmountOfExternalAllocatedMemoryFunction
s_adjustAmountOfExternalAllocatedMemoryFunction;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
static AdjustAmountOfExternalAllocatedMemoryFunction
s_lastUsedAdjustAmountOfExternalAllocatedMemoryFunction;
#endif

Powered by Google App Engine
This is Rietveld 408576698