| Index: net/http/http_cache.cc
|
| diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
|
| index 1b404a79ad65f2f8afd9c2c4bfe891992c853dd4..11e276e4ac1827c41be3d0a0ff3766e3fb13e44f 100644
|
| --- a/net/http/http_cache.cc
|
| +++ b/net/http/http_cache.cc
|
| @@ -743,6 +743,13 @@ int HttpCache::OpenEntry(const std::string& key, ActiveEntry** entry,
|
| return OK;
|
| }
|
|
|
| + // See if we could potentially quick-reject the entry.
|
| + uint8_t in_memory_info = disk_cache_->GetEntryInMemoryData(key);
|
| + if (trans->MaybeRejectBasedOnEntryInMemoryData(in_memory_info)) {
|
| + disk_cache_->DoomEntry(key, base::Bind([](int) {}));
|
| + return net::ERR_CACHE_ENTRY_NOT_SUITABLE;
|
| + }
|
| +
|
| std::unique_ptr<WorkItem> item =
|
| std::make_unique<WorkItem>(WI_OPEN_ENTRY, trans, entry);
|
| PendingOp* pending_op = GetPendingOp(key);
|
|
|