| Index: content/browser/service_worker/service_worker_register_job.cc
|
| diff --git a/content/browser/service_worker/service_worker_register_job.cc b/content/browser/service_worker/service_worker_register_job.cc
|
| index aa9725eb02bef174d820ce3a39b2dadc967d1bca..f4ba02cbd399d3f1bf1c332006a94212dd5794b0 100644
|
| --- a/content/browser/service_worker/service_worker_register_job.cc
|
| +++ b/content/browser/service_worker/service_worker_register_job.cc
|
| @@ -74,6 +74,7 @@ ServiceWorkerRegisterJob::ServiceWorkerRegisterJob(
|
| job_type_(REGISTRATION_JOB),
|
| pattern_(options.scope),
|
| script_url_(script_url),
|
| + update_via_cache_(options.update_via_cache),
|
| phase_(INITIAL),
|
| is_promise_resolved_(false),
|
| should_uninstall_on_failure_(false),
|
| @@ -90,6 +91,7 @@ ServiceWorkerRegisterJob::ServiceWorkerRegisterJob(
|
| : context_(context),
|
| job_type_(UPDATE_JOB),
|
| pattern_(registration->pattern()),
|
| + update_via_cache_(registration->update_via_cache()),
|
| phase_(INITIAL),
|
| is_promise_resolved_(false),
|
| should_uninstall_on_failure_(false),
|
| @@ -317,7 +319,8 @@ void ServiceWorkerRegisterJob::RegisterAndContinue() {
|
| }
|
|
|
| set_registration(new ServiceWorkerRegistration(
|
| - ServiceWorkerRegistrationOptions(pattern_), registration_id, context_));
|
| + ServiceWorkerRegistrationOptions(pattern_, update_via_cache_),
|
| + registration_id, context_));
|
| AddRegistrationToMatchingProviderHosts(registration());
|
| UpdateAndContinue();
|
| }
|
|
|