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

Unified Diff: ui/message_center/notification_blocker.cc

Issue 2424603002: Remove usage of FOR_EACH_OBSERVER macro in ui/message_center (Closed)
Patch Set: Created 4 years, 2 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/message_center_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/notification_blocker.cc
diff --git a/ui/message_center/notification_blocker.cc b/ui/message_center/notification_blocker.cc
index 9ad1656b64e224e1959fc4f63eb45f9aae5e9c56..80353e8bdd9be238889d5258a61de32e70489519 100644
--- a/ui/message_center/notification_blocker.cc
+++ b/ui/message_center/notification_blocker.cc
@@ -34,8 +34,8 @@ bool NotificationBlocker::ShouldShowNotification(
}
void NotificationBlocker::NotifyBlockingStateChanged() {
- FOR_EACH_OBSERVER(
- NotificationBlocker::Observer, observers_, OnBlockingStateChanged(this));
+ for (auto& observer : observers_)
+ observer.OnBlockingStateChanged(this);
}
} // namespace message_center
« no previous file with comments | « ui/message_center/message_center_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698