| Index: content/browser/service_worker/service_worker_context_wrapper.cc
|
| diff --git a/content/browser/service_worker/service_worker_context_wrapper.cc b/content/browser/service_worker/service_worker_context_wrapper.cc
|
| index 4c39f93381e51a8aa1d753b73ff802afe2887ca5..280cc29bffa4727febeaed83c7a677891ac74cce 100644
|
| --- a/content/browser/service_worker/service_worker_context_wrapper.cc
|
| +++ b/content/browser/service_worker/service_worker_context_wrapper.cc
|
| @@ -309,6 +309,7 @@ void ServiceWorkerContextWrapper::GetAllOriginsInfo(
|
|
|
| void ServiceWorkerContextWrapper::DidGetAllRegistrationsForGetAllOrigins(
|
| const GetUsageInfoCallback& callback,
|
| + ServiceWorkerStatusCode status,
|
| const std::vector<ServiceWorkerRegistrationInfo>& registrations) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| std::vector<ServiceWorkerUsageInfo> usage_infos;
|
| @@ -574,7 +575,8 @@ void ServiceWorkerContextWrapper::GetAllRegistrations(
|
| const GetRegistrationsInfosCallback& callback) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| if (!context_core_) {
|
| - RunSoon(base::Bind(callback, std::vector<ServiceWorkerRegistrationInfo>()));
|
| + RunSoon(base::Bind(callback, SERVICE_WORKER_ERROR_ABORT,
|
| + std::vector<ServiceWorkerRegistrationInfo>()));
|
| return;
|
| }
|
| context_core_->storage()->GetAllRegistrationsInfos(callback);
|
|
|