Index: content/browser/dom_storage/dom_storage_host.cc |
diff --git a/content/browser/dom_storage/dom_storage_host.cc b/content/browser/dom_storage/dom_storage_host.cc |
index 3db7d5a15ec774e21de3ed46a77a109b981beed7..2c30bf9f0dbb8df095d6b24124f56792ffd772bc 100644 |
--- a/content/browser/dom_storage/dom_storage_host.cc |
+++ b/content/browser/dom_storage/dom_storage_host.cc |
@@ -55,11 +55,7 @@ bool DOMStorageHost::ExtractAreaValues( |
if (!area->IsLoadedInMemory()) { |
DOMStorageNamespace* ns = GetNamespace(connection_id); |
DCHECK(ns); |
- if (ns->CountInMemoryAreas() > kMaxInMemoryStorageAreas) { |
- ns->PurgeMemory(DOMStorageNamespace::PURGE_UNOPENED); |
- if (ns->CountInMemoryAreas() > kMaxInMemoryStorageAreas) |
- ns->PurgeMemory(DOMStorageNamespace::PURGE_AGGRESSIVE); |
- } |
+ ns->PurgeMemory(DOMStorageNamespace::PURGE_IF_NEEDED); |
} |
area->ExtractValues(map); |
return true; |