| Index: sync/tools/sync_listen_notifications.cc
|
| diff --git a/sync/tools/sync_listen_notifications.cc b/sync/tools/sync_listen_notifications.cc
|
| index 52e2efa63c6d452ddfc1c96f0bf59cddd786c05e..d160285533bd99df390d638fd8e71fcbe0979bae 100644
|
| --- a/sync/tools/sync_listen_notifications.cc
|
| +++ b/sync/tools/sync_listen_notifications.cc
|
| @@ -38,6 +38,16 @@ class NotificationPrinter : public sync_notifier::SyncNotifierObserver {
|
| NotificationPrinter() {}
|
| virtual ~NotificationPrinter() {}
|
|
|
| + virtual void OnNotificationsEnabled() OVERRIDE {
|
| + LOG(INFO) << "Notifications enabled";
|
| + }
|
| +
|
| + virtual void OnNotificationsDisabled(
|
| + sync_notifier::NotificationsDisabledReason reason) OVERRIDE {
|
| + LOG(INFO) << "Notifications disabled with reason "
|
| + << sync_notifier::NotificationsDisabledReasonToString(reason);
|
| + }
|
| +
|
| virtual void OnIncomingNotification(
|
| const syncable::ModelTypePayloadMap& type_payloads,
|
| sync_notifier::IncomingNotificationSource source) OVERRIDE {
|
| @@ -51,11 +61,6 @@ class NotificationPrinter : public sync_notifier::SyncNotifierObserver {
|
| }
|
| }
|
|
|
| - virtual void OnNotificationStateChange(
|
| - bool notifications_enabled) OVERRIDE {
|
| - LOG(INFO) << "Notifications enabled: " << notifications_enabled;
|
| - }
|
| -
|
| private:
|
| DISALLOW_COPY_AND_ASSIGN(NotificationPrinter);
|
| };
|
|
|