| Index: jingle/notifier/listener/non_blocking_push_client.cc
|
| diff --git a/jingle/notifier/listener/non_blocking_push_client.cc b/jingle/notifier/listener/non_blocking_push_client.cc
|
| index 4596657aa63b369c4c09b331c668c5a36b97a152..4b7309d137393542cb2ac978c3062153523d880b 100644
|
| --- a/jingle/notifier/listener/non_blocking_push_client.cc
|
| +++ b/jingle/notifier/listener/non_blocking_push_client.cc
|
| @@ -218,27 +218,28 @@ void NonBlockingPushClient::SendPing() {
|
|
|
| void NonBlockingPushClient::OnNotificationsEnabled() {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| - FOR_EACH_OBSERVER(PushClientObserver, observers_,
|
| - OnNotificationsEnabled());
|
| + for (auto& observer : observers_)
|
| + observer.OnNotificationsEnabled();
|
| }
|
|
|
| void NonBlockingPushClient::OnNotificationsDisabled(
|
| NotificationsDisabledReason reason) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| - FOR_EACH_OBSERVER(PushClientObserver, observers_,
|
| - OnNotificationsDisabled(reason));
|
| + for (auto& observer : observers_)
|
| + observer.OnNotificationsDisabled(reason);
|
| }
|
|
|
| void NonBlockingPushClient::OnIncomingNotification(
|
| const Notification& notification) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| - FOR_EACH_OBSERVER(PushClientObserver, observers_,
|
| - OnIncomingNotification(notification));
|
| + for (auto& observer : observers_)
|
| + observer.OnIncomingNotification(notification);
|
| }
|
|
|
| void NonBlockingPushClient::OnPingResponse() {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| - FOR_EACH_OBSERVER(PushClientObserver, observers_, OnPingResponse());
|
| + for (auto& observer : observers_)
|
| + observer.OnPingResponse();
|
| }
|
|
|
| } // namespace notifier
|
|
|