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

Unified Diff: components/precache/core/precache_fetcher.cc

Issue 1481143002: Added HttpUtils::HasValidators and HttpResponse::HasValidators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: components/precache/core/precache_fetcher.cc
diff --git a/components/precache/core/precache_fetcher.cc b/components/precache/core/precache_fetcher.cc
index 65d598a2de8336fd905bcdd8bde35c94e7c2a47a..23c51cc9eb3899d88eb81c08c6890cbf83b41abc 100644
--- a/components/precache/core/precache_fetcher.cc
+++ b/components/precache/core/precache_fetcher.cc
@@ -190,7 +190,7 @@ void PrecacheFetcher::Fetcher::OnURLFetchComplete(const URLFetcher* source) {
if (fetch_stage_ == FetchStage::CACHE &&
(source->GetStatus().error() == net::ERR_CACHE_MISS ||
(source->GetResponseHeaders() &&
- source->GetResponseHeaders()->HasStrongValidators()))) {
+ source->GetResponseHeaders()->HasValidators()))) {
// If the resource was not found in the cache, request it from the
// network.
//
« no previous file with comments | « no previous file | components/precache/core/precache_fetcher_unittest.cc » ('j') | net/http/http_response_headers.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698