| 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 6c5881189fa43ed89a803e5713a44b2945f2cf9e..69ffa22cbfea8504f31ea41c8e37a9f4f9ebc2a3 100644
|
| --- a/content/browser/service_worker/service_worker_context_wrapper.cc
|
| +++ b/content/browser/service_worker/service_worker_context_wrapper.cc
|
| @@ -711,6 +711,21 @@ void ServiceWorkerContextWrapper::FindReadyRegistrationForId(
|
| this, callback));
|
| }
|
|
|
| +void ServiceWorkerContextWrapper::FindReadyRegistrationForIdOnly(
|
| + int64_t registration_id,
|
| + const FindRegistrationCallback& callback) {
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| + if (!context_core_) {
|
| + // FindRegistrationForIdOnly() can run the callback synchronously.
|
| + callback.Run(SERVICE_WORKER_ERROR_ABORT, nullptr);
|
| + return;
|
| + }
|
| + context_core_->storage()->FindRegistrationForIdOnly(
|
| + registration_id,
|
| + base::Bind(&ServiceWorkerContextWrapper::DidFindRegistrationForFindReady,
|
| + this, callback));
|
| +}
|
| +
|
| void ServiceWorkerContextWrapper::DidFindRegistrationForFindReady(
|
| const FindRegistrationCallback& callback,
|
| ServiceWorkerStatusCode status,
|
|
|