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; |