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

Unified Diff: content/browser/notifications/platform_notification_context_impl.cc

Issue 2256173002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace a WrapUnique() nested inside a MakeUnique() Created 4 years, 3 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
Index: content/browser/notifications/platform_notification_context_impl.cc
diff --git a/content/browser/notifications/platform_notification_context_impl.cc b/content/browser/notifications/platform_notification_context_impl.cc
index f986fa8a6ea6ba03b5b47f99d24005c2d7d9f223..6a777cc7949e9b693f55d1ca9dea9babf8332a27 100644
--- a/content/browser/notifications/platform_notification_context_impl.cc
+++ b/content/browser/notifications/platform_notification_context_impl.cc
@@ -120,8 +120,8 @@ void PlatformNotificationContextImpl::CreateServiceOnIO(
ResourceContext* resource_context,
mojo::InterfaceRequest<blink::mojom::NotificationService> request) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- services_.push_back(base::WrapUnique(new BlinkNotificationServiceImpl(
- this, resource_context, render_process_id, std::move(request))));
+ services_.push_back(base::MakeUnique<BlinkNotificationServiceImpl>(
+ this, resource_context, render_process_id, std::move(request)));
}
void PlatformNotificationContextImpl::RemoveService(

Powered by Google App Engine
This is Rietveld 408576698