| Index: Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| diff --git a/Source/modules/serviceworkers/ServiceWorkerContainer.cpp b/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| index 3b0d18d337bb04040336a9e02a8ecc168dc89810..16bd4f4bd913b0360089bd318d9f9571d9e612db 100644
|
| --- a/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| +++ b/Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
| @@ -124,23 +124,6 @@ ScriptPromise ServiceWorkerContainer::registerServiceWorker(ScriptState* scriptS
|
| return promise;
|
| }
|
|
|
| -class UndefinedValue {
|
| -public:
|
| - typedef WebServiceWorkerRegistration WebType;
|
| - static V8UndefinedType take(ScriptPromiseResolver* resolver, WebType* registration)
|
| - {
|
| - ASSERT(!registration); // Anything passed here will be leaked.
|
| - return V8UndefinedType();
|
| - }
|
| - static void dispose(WebType* registration)
|
| - {
|
| - ASSERT(!registration); // Anything passed here will be leaked.
|
| - }
|
| -
|
| -private:
|
| - UndefinedValue();
|
| -};
|
| -
|
| class BooleanValue {
|
| public:
|
| typedef bool WebType;
|
| @@ -182,11 +165,7 @@ ScriptPromise ServiceWorkerContainer::unregisterServiceWorker(ScriptState* scrip
|
| resolver->reject(DOMException::create(SecurityError, "The scope must match the current origin."));
|
| return promise;
|
| }
|
| -#ifdef DISABLE_SERVICEWORKER_UNREGISTER_RESOLVE_TO_BOOLEAN
|
| - m_provider->unregisterServiceWorker(patternURL, new CallbackPromiseAdapter<UndefinedValue, ServiceWorkerError>(resolver));
|
| -#else
|
| m_provider->unregisterServiceWorker(patternURL, new CallbackPromiseAdapter<BooleanValue, ServiceWorkerError>(resolver));
|
| -#endif
|
| return promise;
|
| }
|
|
|
|
|