Index: sync/notifier/push_client_channel.cc |
diff --git a/sync/notifier/push_client_channel.cc b/sync/notifier/push_client_channel.cc |
index cfd3129b5991f19acca9cc612b23c6da98a8dee9..4ef60bcadf670ba0e3651bd245b9e02438b4d7b9 100644 |
--- a/sync/notifier/push_client_channel.cc |
+++ b/sync/notifier/push_client_channel.cc |
@@ -62,12 +62,20 @@ void PushClientChannel::SetSystemResources( |
// Do nothing. |
} |
-void PushClientChannel::OnNotificationStateChange( |
- bool notifications_enabled) { |
+void PushClientChannel::OnNotificationsEnabled() { |
for (NetworkStatusReceiverList::const_iterator it = |
network_status_receivers_.begin(); |
it != network_status_receivers_.end(); ++it) { |
- (*it)->Run(notifications_enabled); |
+ (*it)->Run(true); |
+ } |
+} |
+ |
+void PushClientChannel::OnNotificationsDisabled( |
+ notifier::NotificationsDisabledReason reason) { |
+ for (NetworkStatusReceiverList::const_iterator it = |
+ network_status_receivers_.begin(); |
+ it != network_status_receivers_.end(); ++it) { |
+ (*it)->Run(false); |
} |
} |