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

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

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_observer.h
diff --git a/jingle/notifier/listener/fake_push_client_observer.h b/jingle/notifier/listener/fake_push_client_observer.h
index b8ee6d6efedf0f56167b87a41a30a193f3f41878..d3500213910bdccaa3280f7303e17826a6546505 100644
--- a/jingle/notifier/listener/fake_push_client_observer.h
+++ b/jingle/notifier/listener/fake_push_client_observer.h
@@ -17,16 +17,17 @@ class FakePushClientObserver : public PushClientObserver {
virtual ~FakePushClientObserver();
// PushClientObserver implementation.
- virtual void OnNotificationStateChange(
- bool notifications_enabled) OVERRIDE;
+ virtual void OnNotificationsEnabled() OVERRIDE;
+ virtual void OnNotificationsDisabled(
+ NotificationsDisabledReason reason) OVERRIDE;
virtual void OnIncomingNotification(
const Notification& notification) OVERRIDE;
- bool notifications_enabled() const;
+ NotificationsDisabledReason last_notifications_disabled_reason() const;
const Notification& last_incoming_notification() const;
private:
- bool notifications_enabled_;
+ NotificationsDisabledReason last_notifications_disabled_reason_;
Notification last_incoming_notification_;
};

Powered by Google App Engine
This is Rietveld 408576698