| 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 a810d71ade0c68a8b18483af5b1406313d922bcb..12f4b9ec927758c106559dac0a8db599604bef71 100644
|
| --- a/content/browser/service_worker/service_worker_storage.cc
|
| +++ b/content/browser/service_worker/service_worker_storage.cc
|
| @@ -390,6 +390,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;
|
| @@ -1147,6 +1148,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;
|
| @@ -1337,8 +1339,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) !=
|
|
|