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

Unified Diff: ui/message_center/message_center_impl.cc

Issue 2105123002: various: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/gfx/render_text_unittest.cc ('k') | url/origin_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/message_center_impl.cc
diff --git a/ui/message_center/message_center_impl.cc b/ui/message_center/message_center_impl.cc
index 22243fa205bc9d3e9b411540050bddf2f3e0e2e6..9b5ffb9c76134fed2fad3f75eb1b2a5c56e76e77 100644
--- a/ui/message_center/message_center_impl.cc
+++ b/ui/message_center/message_center_impl.cc
@@ -343,7 +343,7 @@ void MessageCenterImpl::NotificationCache::Rebuild(
void MessageCenterImpl::NotificationCache::RecountUnread() {
unread_count = 0;
- for (const auto& notification : visible_notifications) {
+ for (auto* notification : visible_notifications) {
if (!notification->IsRead())
++unread_count;
}
@@ -641,7 +641,7 @@ void MessageCenterImpl::RemoveNotificationsForNotifierId(
const NotifierId& notifier_id) {
NotificationList::Notifications notifications =
notification_list_->GetNotificationsByNotifierId(notifier_id);
- for (const auto& notification : notifications)
+ for (auto* notification : notifications)
RemoveNotification(notification->id(), false);
if (!notifications.empty()) {
notification_cache_.Rebuild(
@@ -659,7 +659,7 @@ void MessageCenterImpl::RemoveAllNotifications(bool by_user, RemoveType type) {
const NotificationList::Notifications notifications =
notification_list_->GetVisibleNotifications(blockers);
std::set<std::string> ids;
- for (const auto& notification : notifications) {
+ for (auto* notification : notifications) {
if (!remove_pinned && notification->pinned())
continue;
« no previous file with comments | « ui/gfx/render_text_unittest.cc ('k') | url/origin_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698