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

Unified Diff: Source/core/fetch/MemoryCache.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 years, 5 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: Source/core/fetch/MemoryCache.cpp
diff --git a/Source/core/fetch/MemoryCache.cpp b/Source/core/fetch/MemoryCache.cpp
index 253445951e6af43728c5dfd3c395671552165ddd..c06f019c8229b83026f21c3e74bda67f064d1b81 100644
--- a/Source/core/fetch/MemoryCache.cpp
+++ b/Source/core/fetch/MemoryCache.cpp
@@ -345,7 +345,7 @@ MemoryCache::LRUList* MemoryCache::lruListFor(unsigned accessCount, size_t size)
void MemoryCache::removeFromLRUList(MemoryCacheEntry* entry, LRUList* list)
{
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
// Verify that we are in fact in this list.
bool found = false;
for (MemoryCacheEntry* current = list->m_head; current; current = current->m_nextInAllResourcesList) {
@@ -385,7 +385,7 @@ void MemoryCache::insertInLRUList(MemoryCacheEntry* entry, LRUList* list)
else
list->m_tail = entry;
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
// Verify that we are in now in the list like we should be.
bool found = false;
for (MemoryCacheEntry* current = list->m_head; current; current = current->m_nextInAllResourcesList) {
@@ -407,7 +407,7 @@ void MemoryCache::removeFromLiveDecodedResourcesList(MemoryCacheEntry* entry)
LRUList* list = &m_liveDecodedResources[entry->m_liveResourcePriority];
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
// Verify that we are in fact in this list.
bool found = false;
for (MemoryCacheEntry* current = list->m_head; current; current = current->m_nextInLiveResourcesList) {
@@ -451,7 +451,7 @@ void MemoryCache::insertInLiveDecodedResourcesList(MemoryCacheEntry* entry)
if (!entry->m_nextInLiveResourcesList)
list->m_tail = entry;
-#if ASSERT_ENABLED
+#if ENABLE(ASSERT)
// Verify that we are in now in the list like we should be.
bool found = false;
for (MemoryCacheEntry* current = list->m_head; current; current = current->m_nextInLiveResourcesList) {

Powered by Google App Engine
This is Rietveld 408576698