| Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
|
| diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
|
| index 60c26b45a6df32840b18b3348887dd68b2149200..c4cfde4b517f76842ff9ad9f2f802ffdb8c07844 100644
|
| --- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp
|
| @@ -21,6 +21,12 @@
|
|
|
| namespace blink {
|
|
|
| +ServiceWorkerRegistration* ServiceWorkerRegistration::take(
|
| + ScriptPromiseResolver* resolver,
|
| + std::unique_ptr<WebServiceWorkerRegistration::Handle> handle) {
|
| + return getOrCreate(resolver->getExecutionContext(), std::move(handle));
|
| +}
|
| +
|
| bool ServiceWorkerRegistration::hasPendingActivity() const {
|
| return !m_stopped;
|
| }
|
|
|