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

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

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: Created 3 years, 9 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_storage.cc
diff --git a/content/browser/service_worker/service_worker_storage.cc b/content/browser/service_worker/service_worker_storage.cc
index e1adc7c8a168fe766fc6b39b7c1763544210f47b..6fd6b7dc842bd4eb6934e1f4980fec9dc599bf74 100644
--- a/content/browser/service_worker/service_worker_storage.cc
+++ b/content/browser/service_worker/service_worker_storage.cc
@@ -1301,8 +1301,8 @@ ServiceWorkerStorage::GetOrCreateRegistration(
if (registration)
return registration;
- registration = new ServiceWorkerRegistration(
- data.scope, data.registration_id, context_);
+ registration = new ServiceWorkerRegistration(data.scope, data.use_cache,
+ data.registration_id, context_);
registration->set_resources_total_size_bytes(data.resources_total_size_bytes);
registration->set_last_update_check(data.last_update_check);
if (pending_deletions_.find(data.registration_id) !=

Powered by Google App Engine
This is Rietveld 408576698