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

Unified Diff: content/child/push_messaging/push_provider.cc

Issue 2254173002: 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/child/indexed_db/webidbcursor_impl_unittest.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/push_messaging/push_provider.cc
diff --git a/content/child/push_messaging/push_provider.cc b/content/child/push_messaging/push_provider.cc
index 440ba3c34d97b535c76ebdb3d40699260c6dcab4..b15967eeeae5c143066efb6f7494e9891380bcb9 100644
--- a/content/child/push_messaging/push_provider.cc
+++ b/content/child/push_messaging/push_provider.cc
@@ -167,9 +167,9 @@ void PushProvider::OnSubscribeFromWorkerSuccess(
if (!callbacks)
return;
- 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);
}
@@ -229,9 +229,9 @@ void PushProvider::OnGetSubscriptionSuccess(
if (!callbacks)
return;
- 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/child/indexed_db/webidbcursor_impl_unittest.cc ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698