| 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 686e5ea57d812ca1b2461f4a348a9b5a95ed8a02..0aeb9ed2429b6dd5fa65679b9a479ce4a106d184 100644
|
| --- a/content/browser/service_worker/service_worker_context_wrapper.cc
|
| +++ b/content/browser/service_worker/service_worker_context_wrapper.cc
|
| @@ -681,6 +681,20 @@ void ServiceWorkerContextWrapper::FindReadyRegistrationForDocument(
|
| this, callback));
|
| }
|
|
|
| +void ServiceWorkerContextWrapper::FindReadyRegistrationForPattern(
|
| + const GURL& scope,
|
| + const FindRegistrationCallback& callback) {
|
| + DCHECK_CURRENTLY_ON(BrowserThread::IO);
|
| + if (!context_core_) {
|
| + RunSoon(base::Bind(callback, SERVICE_WORKER_ERROR_ABORT, nullptr));
|
| + return;
|
| + }
|
| + context_core_->storage()->FindRegistrationForPattern(
|
| + net::SimplifyUrlForRequest(scope),
|
| + base::Bind(&ServiceWorkerContextWrapper::DidFindRegistrationForFindReady,
|
| + this, callback));
|
| +}
|
| +
|
| void ServiceWorkerContextWrapper::FindReadyRegistrationForId(
|
| int64_t registration_id,
|
| const GURL& origin,
|
|
|