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()), |