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

Unified Diff: third_party/WebKit/Source/modules/push_messaging/PushSubscription.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/push_messaging/PushSubscription.cpp
diff --git a/third_party/WebKit/Source/modules/push_messaging/PushSubscription.cpp b/third_party/WebKit/Source/modules/push_messaging/PushSubscription.cpp
index 9bb93bddb318bb6f224a8f9750a23de089c47823..913605005981c3473771fcbf9a8d7be190a85466 100644
--- a/third_party/WebKit/Source/modules/push_messaging/PushSubscription.cpp
+++ b/third_party/WebKit/Source/modules/push_messaging/PushSubscription.cpp
@@ -64,7 +64,7 @@ ScriptPromise PushSubscription::unsubscribe(ScriptState* scriptState) {
webPushProvider->unsubscribe(
m_serviceWorkerRegistration->webRegistration(),
- new CallbackPromiseAdapter<bool, PushError>(resolver));
+ WTF::makeUnique<CallbackPromiseAdapter<bool, PushError>>(resolver));
return promise;
}

Powered by Google App Engine
This is Rietveld 408576698