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

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

Issue 327323002: Start removing the double-negative !ASSERT_DISABLED (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/editing/TextIterator.cpp ('k') | Source/core/frame/SuspendableTimer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/MemoryCache.cpp
diff --git a/Source/core/fetch/MemoryCache.cpp b/Source/core/fetch/MemoryCache.cpp
index d789b44943105b2b2f93582136cb4a1669698d34..87792916af6506feed3ea8a57c5c78ad5c087b5b 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_DISABLED
+#if ASSERT_ENABLED
// 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_DISABLED
+#if ASSERT_ENABLED
// 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_DISABLED
+#if ASSERT_ENABLED
// 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_DISABLED
+#if ASSERT_ENABLED
// 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) {
« no previous file with comments | « Source/core/editing/TextIterator.cpp ('k') | Source/core/frame/SuspendableTimer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698