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

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

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: fix IPC Created 3 years, 4 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_registration.cc
diff --git a/content/browser/service_worker/service_worker_registration.cc b/content/browser/service_worker/service_worker_registration.cc
index ca1ca39d3026a55f450fc80e751bb1141a222892..f2d4f0bef43a745434e295f2ce3c4cb3331d697c 100644
--- a/content/browser/service_worker/service_worker_registration.cc
+++ b/content/browser/service_worker/service_worker_registration.cc
@@ -42,6 +42,7 @@ ServiceWorkerRegistration::ServiceWorkerRegistration(
int64_t registration_id,
base::WeakPtr<ServiceWorkerContextCore> context)
: pattern_(options.scope),
+ update_via_cache_(options.update_via_cache),
registration_id_(registration_id),
is_deleted_(false),
is_uninstalling_(false),
@@ -103,7 +104,7 @@ void ServiceWorkerRegistration::NotifyVersionAttributesChanged(
ServiceWorkerRegistrationInfo ServiceWorkerRegistration::GetInfo() {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
return ServiceWorkerRegistrationInfo(
- pattern(), registration_id_,
+ pattern(), update_via_cache(), registration_id_,
is_deleted_ ? ServiceWorkerRegistrationInfo::IS_DELETED
: ServiceWorkerRegistrationInfo::IS_NOT_DELETED,
GetVersionInfo(active_version_.get()),

Powered by Google App Engine
This is Rietveld 408576698