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

Unified Diff: sync/tools/sync_listen_notifications.cc

Issue 10916131: [Invalidations] Add GetInvalidatorState() to Invalidator{,Frontend} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android Created 8 years, 3 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
« no previous file with comments | « sync/sync.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/tools/sync_listen_notifications.cc
diff --git a/sync/tools/sync_listen_notifications.cc b/sync/tools/sync_listen_notifications.cc
index 24789fd76cf8f73d55937f710fb2769178fd02f2..5a832c2d89adc4215221b61ed5153973b280cb9b 100644
--- a/sync/tools/sync_listen_notifications.cc
+++ b/sync/tools/sync_listen_notifications.cc
@@ -54,25 +54,20 @@ class NotificationPrinter : public InvalidationHandler {
NotificationPrinter() {}
virtual ~NotificationPrinter() {}
- virtual void OnNotificationsEnabled() OVERRIDE {
- LOG(INFO) << "Notifications enabled";
+ virtual void OnInvalidatorStateChange(InvalidatorState state) OVERRIDE {
+ LOG(INFO) << "Invalidator state changed to "
+ << InvalidatorStateToString(state);
}
- virtual void OnNotificationsDisabled(
- NotificationsDisabledReason reason) OVERRIDE {
- LOG(INFO) << "Notifications disabled with reason "
- << NotificationsDisabledReasonToString(reason);
- }
-
- virtual void OnIncomingNotification(
+ virtual void OnIncomingInvalidation(
const ObjectIdStateMap& id_state_map,
- IncomingNotificationSource source) OVERRIDE {
+ IncomingInvalidationSource source) OVERRIDE {
const ModelTypeStateMap& type_state_map =
ObjectIdStateMapToModelTypeStateMap(id_state_map);
for (ModelTypeStateMap::const_iterator it = type_state_map.begin();
it != type_state_map.end(); ++it) {
- LOG(INFO) << (source == REMOTE_NOTIFICATION ? "Remote" : "Local")
- << " Notification: type = "
+ LOG(INFO) << (source == REMOTE_INVALIDATION ? "Remote" : "Local")
+ << " Invalidation: type = "
<< ModelTypeToString(it->first)
<< ", payload = " << it->second.payload;
}
« no previous file with comments | « sync/sync.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698