| Index: content/browser/service_worker/service_worker_context_core.cc
|
| diff --git a/content/browser/service_worker/service_worker_context_core.cc b/content/browser/service_worker/service_worker_context_core.cc
|
| index c2e9553f15397f93ddb19d8bdf873a41af0c8bbf..83ed0cb56ef4d4383bec48ff7a63e41f9173b188 100644
|
| --- a/content/browser/service_worker/service_worker_context_core.cc
|
| +++ b/content/browser/service_worker/service_worker_context_core.cc
|
| @@ -331,6 +331,9 @@ void ServiceWorkerContextCore::AddLiveRegistration(
|
| ServiceWorkerRegistration* registration) {
|
| DCHECK(!GetLiveRegistration(registration->id()));
|
| live_registrations_[registration->id()] = registration;
|
| + observer_list_->Notify(FROM_HERE,
|
| + &ServiceWorkerContextObserver::OnNewLiveRegistration,
|
| + registration->id(), registration->pattern());
|
| }
|
|
|
| void ServiceWorkerContextCore::RemoveLiveRegistration(int64 id) {
|
| @@ -347,6 +350,10 @@ void ServiceWorkerContextCore::AddLiveVersion(ServiceWorkerVersion* version) {
|
| DCHECK(!GetLiveVersion(version->version_id()));
|
| live_versions_[version->version_id()] = version;
|
| version->AddListener(this);
|
| + observer_list_->Notify(FROM_HERE,
|
| + &ServiceWorkerContextObserver::OnNewLiveVersion,
|
| + version->version_id(), version->registration_id(),
|
| + version->script_url());
|
| }
|
|
|
| void ServiceWorkerContextCore::RemoveLiveVersion(int64 id) {
|
| @@ -445,7 +452,7 @@ void ServiceWorkerContextCore::OnRunningStateChanged(
|
| return;
|
| observer_list_->Notify(FROM_HERE,
|
| &ServiceWorkerContextObserver::OnRunningStateChanged,
|
| - version->version_id());
|
| + version->version_id(), version->running_status());
|
| }
|
|
|
| void ServiceWorkerContextCore::OnVersionStateChanged(
|
| @@ -454,7 +461,7 @@ void ServiceWorkerContextCore::OnVersionStateChanged(
|
| return;
|
| observer_list_->Notify(FROM_HERE,
|
| &ServiceWorkerContextObserver::OnVersionStateChanged,
|
| - version->version_id());
|
| + version->version_id(), version->status());
|
| }
|
|
|
| void ServiceWorkerContextCore::OnErrorReported(
|
|
|