| 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 8d38845d39f3c2464ae8a0f7398a21e9904e9ec3..18532aa14b90975f563b9f01068078dcad30044b 100644
|
| --- a/content/browser/service_worker/service_worker_storage.cc
|
| +++ b/content/browser/service_worker/service_worker_storage.cc
|
| @@ -406,6 +406,7 @@ void ServiceWorkerStorage::StoreRegistration(
|
| ServiceWorkerDatabase::RegistrationData data;
|
| data.registration_id = registration->id();
|
| data.scope = registration->pattern();
|
| + data.update_via_cache = registration->update_via_cache();
|
| data.script = version->script_url();
|
| data.has_fetch_handler = version->fetch_handler_existence() ==
|
| ServiceWorkerVersion::FetchHandlerExistence::EXISTS;
|
| @@ -1180,6 +1181,7 @@ void ServiceWorkerStorage::DidGetAllRegistrationsInfos(
|
|
|
| ServiceWorkerRegistrationInfo info;
|
| info.pattern = registration_data.scope;
|
| + info.update_via_cache = registration_data.update_via_cache;
|
| info.registration_id = registration_data.registration_id;
|
| info.stored_version_size_bytes =
|
| registration_data.resources_total_size_bytes;
|
| @@ -1370,8 +1372,8 @@ ServiceWorkerStorage::GetOrCreateRegistration(
|
| return registration;
|
|
|
| registration = new ServiceWorkerRegistration(
|
| - ServiceWorkerRegistrationOptions(data.scope), data.registration_id,
|
| - context_);
|
| + ServiceWorkerRegistrationOptions(data.scope, data.update_via_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) !=
|
|
|