Chromium Code Reviews| Index: net/http/http_cache.cc |
| diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc |
| index a167e3200d5d3b44f1e47f70f9610cf698c14bb9..6d4fec01d869d7d2ecbb8a81981b429faa1a3810 100644 |
| --- a/net/http/http_cache.cc |
| +++ b/net/http/http_cache.cc |
| @@ -603,7 +603,7 @@ void HttpCache::CloseIdleConnections() { |
| void HttpCache::OnExternalCacheHit(const GURL& url, |
| const std::string& http_method) { |
| - if (!disk_cache_.get()) |
| + if (!disk_cache_.get() || mode_ == DISABLE) |
| return; |
| HttpRequestInfo request_info; |
| @@ -805,7 +805,7 @@ int HttpCache::AsyncDoomEntry(const std::string& key, Transaction* trans) { |
| } |
| void HttpCache::DoomMainEntryForUrl(const GURL& url) { |
| - if (!disk_cache_) |
| + if (!disk_cache_ || mode_ == DISABLE) |
|
rvargas (doing something else)
2014/12/04 02:35:14
This one should not be needed. (it is already cove
|
| return; |
| HttpRequestInfo temp_info; |