| Index: content/browser/service_worker/service_worker_provider_host.cc
|
| diff --git a/content/browser/service_worker/service_worker_provider_host.cc b/content/browser/service_worker/service_worker_provider_host.cc
|
| index bd0c5ea3197e310de114dc2618f42abc0db0618d..fafe03a69a59d251b8bb502fa16addb947547092 100644
|
| --- a/content/browser/service_worker/service_worker_provider_host.cc
|
| +++ b/content/browser/service_worker/service_worker_provider_host.cc
|
| @@ -28,7 +28,8 @@ ServiceWorkerProviderHost::ServiceWorkerProviderHost(
|
| : process_id_(process_id),
|
| provider_id_(provider_id),
|
| context_(context),
|
| - dispatcher_host_(dispatcher_host) {
|
| + dispatcher_host_(dispatcher_host),
|
| + allow_association_(true) {
|
| }
|
|
|
| ServiceWorkerProviderHost::~ServiceWorkerProviderHost() {
|
| @@ -186,7 +187,7 @@ bool ServiceWorkerProviderHost::CanAssociateRegistration(
|
| return false;
|
| if (running_hosted_version_.get())
|
| return false;
|
| - if (!registration || associated_registration_.get())
|
| + if (!registration || associated_registration_.get() || !allow_association_)
|
| return false;
|
| return true;
|
| }
|
|
|