Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp |
index 255f515dcd34964626f9e5879d66ac79927f3f04..effb5e7836120d7abee5beba0e29480ee30600bc 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp |
@@ -13,6 +13,7 @@ |
#include "modules/serviceworkers/ServiceWorkerContainer.h" |
#include "public/platform/Platform.h" |
#include "public/platform/WebScheduler.h" |
+#include "wtf/PtrUtil.h" |
namespace blink { |
@@ -72,7 +73,7 @@ void ServiceWorkerLinkResource::process() |
TrackExceptionState exceptionState; |
- NavigatorServiceWorker::serviceWorker(&document, *document.frame()->domWindow()->navigator(), exceptionState)->registerServiceWorkerImpl(&document, scriptURL, scopeURL, adoptPtr(new RegistrationCallback(m_owner))); |
+ NavigatorServiceWorker::serviceWorker(&document, *document.frame()->domWindow()->navigator(), exceptionState)->registerServiceWorkerImpl(&document, scriptURL, scopeURL, wrapUnique(new RegistrationCallback(m_owner))); |
} |
bool ServiceWorkerLinkResource::hasLoaded() const |