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

Unified Diff: net/http/http_cache.cc

Issue 761763003: Do not call GenerateCacheKey() if disk cache is disabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not call GenerateCacheKey() if disk cache is disabled. 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 | « no previous file | no next file » | 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 | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698