| Index: Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
|
| diff --git a/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp b/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
|
| index a87b1ae8e78be8c62eadbefc71be06251c36cbee..db855b7bf0e3f601f14dc7f476e8370d5ec6c1b4 100644
|
| --- a/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
|
| +++ b/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
|
| @@ -76,11 +76,16 @@ void ServiceWorkerRegistration::setActive(WebServiceWorker* serviceWorker)
|
| m_active = ServiceWorker::from(executionContext(), serviceWorker);
|
| }
|
|
|
| -ServiceWorkerRegistration* ServiceWorkerRegistration::take(ScriptPromiseResolver* resolver, WebType* registration)
|
| +ServiceWorkerRegistration* ServiceWorkerRegistration::from(ExecutionContext* executionContext, WebType* registration)
|
| {
|
| if (!registration)
|
| return 0;
|
| - return getOrCreate(resolver->scriptState()->executionContext(), registration);
|
| + return getOrCreate(executionContext, registration);
|
| +}
|
| +
|
| +ServiceWorkerRegistration* ServiceWorkerRegistration::take(ScriptPromiseResolver* resolver, WebType* registration)
|
| +{
|
| + return from(resolver->scriptState()->executionContext(), registration);
|
| }
|
|
|
| void ServiceWorkerRegistration::dispose(WebType* registration)
|
|
|