summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/mock_appcache_storage.cc
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-04 19:11:14 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-04 19:11:14 +0000
commit8d37b18c3c8c5258fd7a94460eb613df37a3155e (patch)
treed48745f0fbbd830d7b305277517aae3747bf6810 /webkit/appcache/mock_appcache_storage.cc
parent3b467d84c402cb2bee271bda2f4babd5d60e648e (diff)
downloadchromium_src-8d37b18c3c8c5258fd7a94460eb613df37a3155e.zip
chromium_src-8d37b18c3c8c5258fd7a94460eb613df37a3155e.tar.gz
chromium_src-8d37b18c3c8c5258fd7a94460eb613df37a3155e.tar.bz2
Fixes to address the failing appcache/remove-cache.html layout tests.
BUG=31300 TEST=yes, layout test Review URL: http://codereview.chromium.org/524014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35465 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/mock_appcache_storage.cc')
-rw-r--r--webkit/appcache/mock_appcache_storage.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/webkit/appcache/mock_appcache_storage.cc b/webkit/appcache/mock_appcache_storage.cc
index 44bcd12..64a66a7 100644
--- a/webkit/appcache/mock_appcache_storage.cc
+++ b/webkit/appcache/mock_appcache_storage.cc
@@ -359,6 +359,11 @@ void MockAppCacheStorage::ProcessMakeGroupObsolete(
group->set_obsolete(true);
+ // Also remove from the working set, caches for an 'obsolete' group
+ // may linger in use, but the group itself cannot be looked up by
+ // 'manifest_url' in the working set any longer.
+ working_set()->RemoveGroup(group);
+
if (delegate_ref->delegate)
delegate_ref->delegate->OnGroupMadeObsolete(group, true);
}
@@ -406,10 +411,6 @@ void MockAppCacheStorage::AddStoredGroup(AppCacheGroup* group) {
}
void MockAppCacheStorage::RemoveStoredGroup(AppCacheGroup* group) {
- // Also remove from the working set, caches for an 'obsolete' group
- // may linger in use, but the group itself cannot be looked up by
- // 'manifest_url' in the working set any longer.
- working_set()->RemoveGroup(group);
stored_groups_.erase(group->manifest_url());
}