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

Unified Diff: ui/message_center/notification_list_unittest.cc

Issue 2314833002: Remove some uses of stl_util's STLDeleteContainerPointers. (Closed)
Patch Set: removed a few items 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: ui/message_center/notification_list_unittest.cc
diff --git a/ui/message_center/notification_list_unittest.cc b/ui/message_center/notification_list_unittest.cc
index 9daa10310629a1a939fcdbb68a49c95f1864b376..2cdfe2f82d3a723b3d1983b5f6fa38ba79df1eeb 100644
--- a/ui/message_center/notification_list_unittest.cc
+++ b/ui/message_center/notification_list_unittest.cc
@@ -88,11 +88,10 @@ class NotificationListTest : public testing::Test {
}
Notification* GetNotification(const std::string& id) {
- NotificationList::Notifications::iterator iter =
- notification_list()->GetNotification(id);
+ auto iter = notification_list()->GetNotification(id);
if (iter == notification_list()->notifications_.end())
return NULL;
- return *iter;
+ return iter->get();
}
NotificationList* notification_list() { return notification_list_.get(); }
« ui/message_center/notification_list.h ('K') | « ui/message_center/notification_list.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698