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

Unified Diff: ui/message_center/notification_list.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_list.h ('k') | ui/message_center/notification_list_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification_list.cc
diff --git a/ui/message_center/notification_list.cc b/ui/message_center/notification_list.cc
index ca038df9c3a871327450f0dbfe455a9b56a17ad9..14abd9b5c420b4a5994288acd9524248ec2a3ff5 100644
--- a/ui/message_center/notification_list.cc
+++ b/ui/message_center/notification_list.cc
@@ -87,13 +87,14 @@ void NotificationList::SetMessageCenterVisible(
}
}
-void NotificationList::AddNotification(scoped_ptr<Notification> notification) {
+void NotificationList::AddNotification(
+ std::unique_ptr<Notification> notification) {
PushNotification(std::move(notification));
}
void NotificationList::UpdateNotificationMessage(
const std::string& old_id,
- scoped_ptr<Notification> new_notification) {
+ std::unique_ptr<Notification> new_notification) {
Notifications::iterator iter = GetNotification(old_id);
if (iter == notifications_.end())
return;
@@ -329,7 +330,8 @@ void NotificationList::EraseNotification(Notifications::iterator iter) {
notifications_.erase(iter);
}
-void NotificationList::PushNotification(scoped_ptr<Notification> notification) {
+void NotificationList::PushNotification(
+ std::unique_ptr<Notification> notification) {
// Ensure that notification.id is unique by erasing any existing
// notification with the same id (shouldn't normally happen).
Notifications::iterator iter = GetNotification(notification->id());
« no previous file with comments | « ui/message_center/notification_list.h ('k') | ui/message_center/notification_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698