Index: sync/notifier/invalidation_notifier.cc |
diff --git a/sync/notifier/invalidation_notifier.cc b/sync/notifier/invalidation_notifier.cc |
index 485e9694d4953d9804c1463e73e7febc3bbd4c63..9925041450dada1f13dcebae875e64740bd66fc2 100644 |
--- a/sync/notifier/invalidation_notifier.cc |
+++ b/sync/notifier/invalidation_notifier.cc |
@@ -102,14 +102,23 @@ void InvalidationNotifier::SendNotification( |
void InvalidationNotifier::OnInvalidate( |
const syncable::ModelTypePayloadMap& type_payloads) { |
DCHECK(CalledOnValidThread()); |
+ FOR_EACH_OBSERVER( |
+ SyncNotifierObserver, observers_, |
+ OnIncomingNotification(type_payloads, |
+ sync_notifier::REMOTE_NOTIFICATION)); |
+} |
+ |
+void InvalidationNotifier::OnNotificationsEnabled() { |
+ DCHECK(CalledOnValidThread()); |
FOR_EACH_OBSERVER(SyncNotifierObserver, observers_, |
- OnIncomingNotification(type_payloads, |
- sync_notifier::REMOTE_NOTIFICATION)); |
+ OnNotificationsEnabled()); |
} |
-void InvalidationNotifier::OnSessionStatusChanged(bool has_session) { |
+void InvalidationNotifier::OnNotificationsDisabled( |
+ NotificationsDisabledReason reason) { |
+ DCHECK(CalledOnValidThread()); |
FOR_EACH_OBSERVER(SyncNotifierObserver, observers_, |
- OnNotificationStateChange(has_session)); |
+ OnNotificationsDisabled(reason)); |
} |
} // namespace sync_notifier |