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

Unified Diff: ui/arc/notification/arc_notification_item.cc

Issue 2259753003: 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 | « ui/app_list/views/search_result_page_view.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/arc/notification/arc_notification_item.cc
diff --git a/ui/arc/notification/arc_notification_item.cc b/ui/arc/notification/arc_notification_item.cc
index 06b325cd952e6d26ff0201ecc48ad613e6368e5d..704966979d7e1c943148ef41b2aa3ba38fb51131 100644
--- a/ui/arc/notification/arc_notification_item.cc
+++ b/ui/arc/notification/arc_notification_item.cc
@@ -220,14 +220,14 @@ void ArcNotificationItem::UpdateWithArcNotificationData(
DCHECK(!data.title.is_null());
DCHECK(!data.message.is_null());
- SetNotification(base::WrapUnique(new message_center::Notification(
+ SetNotification(base::MakeUnique<message_center::Notification>(
type, notification_id_, base::UTF8ToUTF16(data.title.get()),
base::UTF8ToUTF16(data.message.get()),
gfx::Image(), // icon image: Will be overriden later.
base::UTF8ToUTF16("arc"), // display source
GURL(), // empty origin url, for system component
notifier_id, rich_data,
- new ArcNotificationDelegate(weak_ptr_factory_.GetWeakPtr()))));
+ new ArcNotificationDelegate(weak_ptr_factory_.GetWeakPtr())));
DCHECK(!data.icon_data.is_null());
if (data.icon_data.size() == 0) {
« no previous file with comments | « ui/app_list/views/search_result_page_view.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698