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

Unified Diff: sync/notifier/push_client_channel.cc

Issue 10545170: [Sync] Propagate XMPP auth errors to SyncNotifierObservers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix deps, win compile error Created 8 years, 6 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
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);
}
}

Powered by Google App Engine
This is Rietveld 408576698