Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1538)

Unified Diff: net/http/http_cache.cc

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_auth_handler_negotiate.cc ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache.cc
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index a167e3200d5d3b44f1e47f70f9610cf698c14bb9..a34bef1158961bc78c29049ba89e0567990f99c1 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;
« no previous file with comments | « net/http/http_auth_handler_negotiate.cc ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698