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

Unified Diff: ui/message_center/views/message_popup_collection_unittest.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/message_center/message_center_tray.cc ('k') | ui/ozone/common/display_snapshot_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_popup_collection_unittest.cc
diff --git a/ui/message_center/views/message_popup_collection_unittest.cc b/ui/message_center/views/message_popup_collection_unittest.cc
index e2f40a69c89a2ada31e8d51d62bb38012f5d990d..5d62ad3ed483d4cb833725f3598ee817e23d8db8 100644
--- a/ui/message_center/views/message_popup_collection_unittest.cc
+++ b/ui/message_center/views/message_popup_collection_unittest.cc
@@ -37,13 +37,13 @@ namespace {
std::unique_ptr<message_center::Notification> CreateTestNotification(
std::string id,
std::string text) {
- return base::WrapUnique(new message_center::Notification(
+ return base::MakeUnique<message_center::Notification>(
message_center::NOTIFICATION_TYPE_BASE_FORMAT, id,
base::UTF8ToUTF16("test title"), base::ASCIIToUTF16(text), gfx::Image(),
base::string16() /* display_source */, GURL(),
message_center::NotifierId(message_center::NotifierId::APPLICATION, id),
message_center::RichNotificationData(),
- new message_center::NotificationDelegate()));
+ new message_center::NotificationDelegate());
}
// Provides an aura window context for widget creation.
« no previous file with comments | « ui/message_center/message_center_tray.cc ('k') | ui/ozone/common/display_snapshot_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698