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

Unified Diff: jingle/notifier/listener/fake_push_client.cc

Issue 2419693006: Remove usage of FOR_EACH_OBSERVER macro in jingle (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 | « no previous file | jingle/notifier/listener/non_blocking_push_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: jingle/notifier/listener/fake_push_client.cc
diff --git a/jingle/notifier/listener/fake_push_client.cc b/jingle/notifier/listener/fake_push_client.cc
index 1106c932b7f3016abccc539c4b226f7072b62598..7225408ced75e36319eb6fa9fe4d3779daa92ba6 100644
--- a/jingle/notifier/listener/fake_push_client.cc
+++ b/jingle/notifier/listener/fake_push_client.cc
@@ -40,20 +40,20 @@ void FakePushClient::SendPing() {
}
void FakePushClient::EnableNotifications() {
- FOR_EACH_OBSERVER(PushClientObserver, observers_,
- OnNotificationsEnabled());
+ for (auto& observer : observers_)
+ observer.OnNotificationsEnabled();
}
void FakePushClient::DisableNotifications(
NotificationsDisabledReason reason) {
- FOR_EACH_OBSERVER(PushClientObserver, observers_,
- OnNotificationsDisabled(reason));
+ for (auto& observer : observers_)
+ observer.OnNotificationsDisabled(reason);
}
void FakePushClient::SimulateIncomingNotification(
const Notification& notification) {
- FOR_EACH_OBSERVER(PushClientObserver, observers_,
- OnIncomingNotification(notification));
+ for (auto& observer : observers_)
+ observer.OnIncomingNotification(notification);
}
const SubscriptionList& FakePushClient::subscriptions() const {
« no previous file with comments | « no previous file | jingle/notifier/listener/non_blocking_push_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698