Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClient.cpp

Issue 2480293004: Mandate unique_ptr for base::IDMap in IDMapOwnPointer mode. (Closed)
Patch Set: Make changes requested by danakj, fix a few more headers Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698