Chromium Code Reviews| Index: net/disk_cache/backend_impl.cc |
| diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc |
| index deacdd3c7eb4e23857e947ee845ccc3452458ec3..de9650a44182b6de8ff666260d16e3c36c40bcf9 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_ || !data_) |
|
rvargas (doing something else)
2011/08/15 20:45:39
nit: disabled_ should be enough (to be consistent
|
| + return; |
| + |
| uint32 hash = Hash(key); |
| bool error; |
| EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error); |