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

Unified Diff: ui/message_center/notification.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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/notification.h ('k') | ui/message_center/notification_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification.cc
diff --git a/ui/message_center/notification.cc b/ui/message_center/notification.cc
index b0a379ddb9d38b88532f91ef160600c94c8bc126..b2ddd52568c491e65d2f602a4931499b9fc0e17e 100644
--- a/ui/message_center/notification.cc
+++ b/ui/message_center/notification.cc
@@ -169,14 +169,14 @@ bool Notification::UseOriginAsContextMessage() const {
}
// static
-scoped_ptr<Notification> Notification::CreateSystemNotification(
+std::unique_ptr<Notification> Notification::CreateSystemNotification(
const std::string& notification_id,
const base::string16& title,
const base::string16& message,
const gfx::Image& icon,
const std::string& system_component_id,
const base::Closure& click_callback) {
- scoped_ptr<Notification> notification(new Notification(
+ std::unique_ptr<Notification> notification(new Notification(
NOTIFICATION_TYPE_SIMPLE, notification_id, title, message, icon,
base::string16() /* display_source */, GURL(),
NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id),
« no previous file with comments | « ui/message_center/notification.h ('k') | ui/message_center/notification_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698