| Index: Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| diff --git a/Source/modules/serviceworkers/ServiceWorkerContainer.cpp b/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| index 68d72c74daa486c481badd2ce7ac8b56aebd76b5..f966de158b6a7b134acaf53c78bd0cc1b3b8990e 100644
|
| --- a/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| +++ b/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| @@ -119,22 +119,14 @@ ScriptPromise ServiceWorkerContainer::registerServiceWorker(ScriptState* scriptS
|
| return promise;
|
| }
|
|
|
| -#ifdef DISABLE_SERVICE_WORKER_REGISTRATION
|
| - m_provider->registerServiceWorker(patternURL, scriptURL, new CallbackPromiseAdapter<ServiceWorker, ServiceWorkerError>(resolver));
|
| -#else
|
| m_provider->registerServiceWorker(patternURL, scriptURL, new CallbackPromiseAdapter<ServiceWorkerRegistration, ServiceWorkerError>(resolver));
|
| -#endif
|
|
|
| return promise;
|
| }
|
|
|
| class UndefinedValue {
|
| public:
|
| -#ifdef DISABLE_SERVICE_WORKER_REGISTRATION
|
| - typedef WebServiceWorker WebType;
|
| -#else
|
| typedef WebServiceWorkerRegistration WebType;
|
| -#endif
|
| static V8UndefinedType take(ScriptPromiseResolver* resolver, WebType* registration)
|
| {
|
| ASSERT(!registration); // Anything passed here will be leaked.
|
|
|