Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp |
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp |
index f9bb4f0b2387538b1caf4c5e1b97b0b4ee4427f0..b69969211fe7dda1c1fc74472a569d74843044e3 100644 |
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp |
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp |
@@ -56,8 +56,10 @@ ScriptPromise ServiceWorkerWindowClient::focus(ScriptState* scriptState) { |
scriptState->getExecutionContext()->consumeWindowInteraction(); |
ServiceWorkerGlobalScopeClient::from(scriptState->getExecutionContext()) |
- ->focus(uuid(), new CallbackPromiseAdapter<ServiceWorkerWindowClient, |
- ServiceWorkerError>(resolver)); |
+ ->focus(uuid(), |
+ WTF::makeUnique<CallbackPromiseAdapter<ServiceWorkerWindowClient, |
+ ServiceWorkerError>>( |
+ resolver)); |
return promise; |
} |
@@ -81,7 +83,7 @@ ScriptPromise ServiceWorkerWindowClient::navigate(ScriptState* scriptState, |
} |
ServiceWorkerGlobalScopeClient::from(context)->navigate( |
- uuid(), parsedUrl, new NavigateClientCallback(resolver)); |
+ uuid(), parsedUrl, WTF::makeUnique<NavigateClientCallback>(resolver)); |
return promise; |
} |