Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClientCallback.cpp |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClientCallback.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClientCallback.cpp |
index 26585424d49fb7eeb37a6c11b4f25e2d6cef0c8b..36a1fab9fe7e466417f41bf0a0114d6b3dc2bb63 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClientCallback.cpp |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClientCallback.cpp |
@@ -8,6 +8,7 @@ |
#include "core/dom/DOMException.h" |
#include "modules/serviceworkers/ServiceWorkerError.h" |
#include "modules/serviceworkers/ServiceWorkerWindowClient.h" |
+#include "wtf/PtrUtil.h" |
namespace blink { |
@@ -15,7 +16,7 @@ void NavigateClientCallback::onSuccess(std::unique_ptr<WebServiceWorkerClientInf |
{ |
if (!m_resolver->getExecutionContext() || m_resolver->getExecutionContext()->activeDOMObjectsAreStopped()) |
return; |
- m_resolver->resolve(ServiceWorkerWindowClient::take(m_resolver.get(), adoptPtr(clientInfo.release()))); |
+ m_resolver->resolve(ServiceWorkerWindowClient::take(m_resolver.get(), wrapUnique(clientInfo.release()))); |
} |
void NavigateClientCallback::onError(const WebServiceWorkerError& error) |