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

Unified Diff: content/browser/service_worker/service_worker_context_wrapper.cc

Issue 1339623002: Make registration.update() no longer force bypassing the HTTP cache (2/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months 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: content/browser/service_worker/service_worker_context_wrapper.cc
diff --git a/content/browser/service_worker/service_worker_context_wrapper.cc b/content/browser/service_worker/service_worker_context_wrapper.cc
index c489a77dc04b1b7008ffeb8e6599b40e3f11d5da..5f718fcca1ad5ad65f82cda1cdd93ead330a2b5c 100644
--- a/content/browser/service_worker/service_worker_context_wrapper.cc
+++ b/content/browser/service_worker/service_worker_context_wrapper.cc
@@ -421,6 +421,11 @@ void ServiceWorkerContextWrapper::DidFindRegistrationForUpdate(
if (!context_core_)
return;
DCHECK(registration);
+ // TODO(jungkees): |force_bypass_cache| is set to true because the call stack
+ // is initiated by an update button on DevTools that expects the cache is
+ // bypassed. However, in order to provide options for callers to choose the
+ // cache bypass mode, plumb |force_bypass_cache| through to
+ // UpdateRegistration().
context_core_->UpdateServiceWorker(registration.get(),
true /* force_bypass_cache */);
}

Powered by Google App Engine
This is Rietveld 408576698