Index: webkit/dom_storage/dom_storage_context.cc |
=================================================================== |
--- webkit/dom_storage/dom_storage_context.cc (revision 127613) |
+++ webkit/dom_storage/dom_storage_context.cc (working copy) |
@@ -89,11 +89,18 @@ |
} |
void DomStorageContext::PurgeMemory() { |
- // TODO(michaeln): write me |
+ // We can only purge memory from the local storage namespace |
benm (inactive)
2012/03/20 13:39:16
did you mean to add these changes in this CL?
|
+ // which is backed by disk. |
+ StorageNamespaceMap::iterator found = |
+ namespaces_.find(kLocalStorageNamespaceId); |
+ if (found != namespaces_.end()) |
+ found->second->PurgeMemory(); |
} |
void DomStorageContext::Shutdown() { |
- // TODO(michaeln): write me |
+ StorageNamespaceMap::const_iterator it = namespaces_.begin(); |
+ for (; it != namespaces_.end(); ++it) |
+ it->second->Shutdown(); |
} |
void DomStorageContext::AddEventObserver(EventObserver* observer) { |