Index: content/browser/service_worker/service_worker_controllee_request_handler.cc |
diff --git a/content/browser/service_worker/service_worker_controllee_request_handler.cc b/content/browser/service_worker/service_worker_controllee_request_handler.cc |
index 0db1289002c8db8b2ab01d41aa5a8888cbb0da06..f19a52c6736ba9cf4901a9aa6f0c14c47e338551 100644 |
--- a/content/browser/service_worker/service_worker_controllee_request_handler.cc |
+++ b/content/browser/service_worker/service_worker_controllee_request_handler.cc |
@@ -139,6 +139,7 @@ ServiceWorkerControlleeRequestHandler::DidLookupRegistrationForMainResource( |
return; |
} |
DCHECK(registration.get()); |
+ provider_host_->AssociateRegistration(registration.get()); |
nhiroki
2014/09/08 15:55:52
To associate a potential controllee (ie. |provider
michaeln
2014/09/09 02:22:01
Does this have to happen prior to the pre-existing
nhiroki
2014/09/09 08:49:08
Hmmm... I think the condition would have already e
nhiroki
2014/09/09 11:48:35
As per the spec discussion (https://github.com/sli
michaeln
2014/09/09 23:30:33
Ah, I think your right and it definitely will have
|
ServiceWorkerMetrics::CountControlledPageLoad(); |
@@ -182,7 +183,7 @@ ServiceWorkerControlleeRequestHandler::DidLookupRegistrationForMainResource( |
return; |
} |
- provider_host_->AssociateRegistration(registration.get()); |
+ provider_host_->SetControllerVersionAttribute(active_version.get()); |
job_->ForwardToServiceWorker(); |
TRACE_EVENT_ASYNC_END2( |
"ServiceWorker", |
@@ -202,7 +203,7 @@ void ServiceWorkerControlleeRequestHandler::OnVersionStatusChanged( |
return; |
} |
- provider_host_->AssociateRegistration(registration); |
+ provider_host_->SetControllerVersionAttribute(registration->active_version()); |
job_->ForwardToServiceWorker(); |
} |