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

Unified Diff: jingle/notifier/listener/fake_push_client.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: 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 cfe4a999ab4be1223f2dbdc6e38f64b34fad45f8..0565c3c1ed51c038eded992b2cfb3f213c6b0d02 100644
--- a/jingle/notifier/listener/fake_push_client.cc
+++ b/jingle/notifier/listener/fake_push_client.cc
@@ -35,10 +35,15 @@ void FakePushClient::SendNotification(const Notification& notification) {
sent_notifications_.push_back(notification);
}
-void FakePushClient::SimulateNotificationStateChange(
- bool notifications_enabled) {
+void FakePushClient::EnableNotifications() {
FOR_EACH_OBSERVER(PushClientObserver, observers_,
- OnNotificationStateChange(notifications_enabled));
+ OnNotificationsEnabled());
+}
+
+void FakePushClient::DisableNotifications(
+ NotificationsDisabledReason reason) {
+ FOR_EACH_OBSERVER(PushClientObserver, observers_,
+ OnNotificationsDisabled(reason));
}
void FakePushClient::SimulateIncomingNotification(

Powered by Google App Engine
This is Rietveld 408576698