Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
index 9f8e912c70c8015057b56370418f3d3e6ee8cf03..b6196fd35820494cc90edfddbde8dbf5f8950738 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp |
@@ -63,6 +63,7 @@ |
#include "wtf/CurrentTime.h" |
#include "wtf/PtrUtil.h" |
#include <memory> |
+#include <utility> |
namespace blink { |
@@ -166,7 +167,8 @@ ScriptPromise ServiceWorkerGlobalScope::skipWaiting(ScriptState* scriptState) { |
ScriptPromise promise = resolver->promise(); |
ServiceWorkerGlobalScopeClient::from(executionContext) |
- ->skipWaiting(new CallbackPromiseAdapter<void, void>(resolver)); |
+ ->skipWaiting( |
+ WTF::makeUnique<CallbackPromiseAdapter<void, void>>(resolver)); |
return promise; |
} |