| 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..51a1b484b5ffcce12f7d02e1e9d0dc640dc6e3e1 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.use_cache = registration->use_cache();
|
| data.script = version->script_url();
|
| data.has_fetch_handler = version->fetch_handler_existence() ==
|
| ServiceWorkerVersion::FetchHandlerExistence::EXISTS;
|
| @@ -1112,6 +1113,7 @@ void ServiceWorkerStorage::DidGetAllRegistrationsInfos(
|
|
|
| ServiceWorkerRegistrationInfo info;
|
| info.pattern = registration_data.scope;
|
| + info.use_cache = registration_data.use_cache;
|
| info.registration_id = registration_data.registration_id;
|
| info.stored_version_size_bytes =
|
| registration_data.resources_total_size_bytes;
|
| @@ -1301,8 +1303,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) !=
|
|
|