summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/disk_cache/backend_impl.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc
index deacdd3..520be91 100644
--- a/net/disk_cache/backend_impl.cc
+++ b/net/disk_cache/backend_impl.cc
@@ -683,6 +683,9 @@ void BackendImpl::SyncEndEnumeration(void* iter) {
}
void BackendImpl::SyncOnExternalCacheHit(const std::string& key) {
+ if (disabled_)
+ return;
+
uint32 hash = Hash(key);
bool error;
EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error);