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

Unified Diff: jingle/notifier/listener/fake_push_client_observer.cc

Issue 10545170: [Sync] Propagate XMPP auth errors to SyncNotifierObservers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix 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_observer.cc
diff --git a/jingle/notifier/listener/fake_push_client_observer.cc b/jingle/notifier/listener/fake_push_client_observer.cc
index ec1b9e1118802faeacefdb6abb4f1bbe63044129..ed953b2231d371a1321a88d1be4d1454a11d30c5 100644
--- a/jingle/notifier/listener/fake_push_client_observer.cc
+++ b/jingle/notifier/listener/fake_push_client_observer.cc
@@ -7,13 +7,13 @@
namespace notifier {
FakePushClientObserver::FakePushClientObserver()
- : notifications_enabled_(false) {}
+ : push_client_state_(NOTIFICATIONS_OFF) {}
FakePushClientObserver::~FakePushClientObserver() {}
-void FakePushClientObserver::OnNotificationStateChange(
- bool notifications_enabled) {
- notifications_enabled_ = notifications_enabled;
+void FakePushClientObserver::OnPushClientStateChange(
+ PushClientState push_client_state) {
+ push_client_state_ = push_client_state;
}
void FakePushClientObserver::OnIncomingNotification(
@@ -21,8 +21,8 @@ void FakePushClientObserver::OnIncomingNotification(
last_incoming_notification_ = notification;
}
-bool FakePushClientObserver::notifications_enabled() const {
- return notifications_enabled_;
+PushClientState FakePushClientObserver::push_client_state() const {
+ return push_client_state_;
}
const Notification&

Powered by Google App Engine
This is Rietveld 408576698