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