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

Unified Diff: content/renderer/push_messaging/push_messaging_dispatcher.cc

Issue 2253053003: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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
« no previous file with comments | « content/renderer/presentation/presentation_dispatcher.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/push_messaging/push_messaging_dispatcher.cc
diff --git a/content/renderer/push_messaging/push_messaging_dispatcher.cc b/content/renderer/push_messaging/push_messaging_dispatcher.cc
index 7c89a765306072cc031cc8a3a5a9039b769aab15..6756f61d5873b995e1fbf5c9c80d1cb79d7c1cb1 100644
--- a/content/renderer/push_messaging/push_messaging_dispatcher.cc
+++ b/content/renderer/push_messaging/push_messaging_dispatcher.cc
@@ -122,9 +122,9 @@ void PushMessagingDispatcher::OnSubscribeFromDocumentSuccess(
subscription_callbacks_.Lookup(request_id);
DCHECK(callbacks);
- callbacks->onSuccess(base::WrapUnique(new blink::WebPushSubscription(
+ callbacks->onSuccess(base::MakeUnique<blink::WebPushSubscription>(
endpoint, options.user_visible_only,
- blink::WebString::fromLatin1(options.sender_info), p256dh, auth)));
+ blink::WebString::fromLatin1(options.sender_info), p256dh, auth));
subscription_callbacks_.Remove(request_id);
}
« no previous file with comments | « content/renderer/presentation/presentation_dispatcher.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698