Index: content/browser/appcache/appcache_backend_impl.cc |
diff --git a/content/browser/appcache/appcache_backend_impl.cc b/content/browser/appcache/appcache_backend_impl.cc |
index 099c54e55adae043a613cfdca79faaa2d1cfeadc..e055f1a1de8465ee7ec45eb386593bb8be1ecd55 100644 |
--- a/content/browser/appcache/appcache_backend_impl.cc |
+++ b/content/browser/appcache/appcache_backend_impl.cc |
@@ -68,7 +68,7 @@ bool AppCacheBackendImpl::SelectCache( |
const int64 cache_document_was_loaded_from, |
const GURL& manifest_url) { |
AppCacheHost* host = GetHost(host_id); |
- if (!host) |
+ if (!host || host->was_select_cache_called()) |
return false; |
host->SelectCache(document_url, cache_document_was_loaded_from, |
@@ -79,7 +79,7 @@ bool AppCacheBackendImpl::SelectCache( |
bool AppCacheBackendImpl::SelectCacheForWorker( |
int host_id, int parent_process_id, int parent_host_id) { |
AppCacheHost* host = GetHost(host_id); |
- if (!host) |
+ if (!host || host->was_select_cache_called()) |
return false; |
host->SelectCacheForWorker(parent_process_id, parent_host_id); |
@@ -89,7 +89,7 @@ bool AppCacheBackendImpl::SelectCacheForWorker( |
bool AppCacheBackendImpl::SelectCacheForSharedWorker( |
int host_id, int64 appcache_id) { |
AppCacheHost* host = GetHost(host_id); |
- if (!host) |
+ if (!host || host->was_select_cache_called()) |
return false; |
host->SelectCacheForSharedWorker(appcache_id); |