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

Unified Diff: sync/tools/sync_listen_notifications.cc

Issue 11052007: Rename ModelType/ObjectIdStateMap to InvalidationMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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/test/engine/syncer_command_test.h ('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 e7eb13d546fe39c407805b8273fb66e015b87e71..51cef834cb5c0f2b8e773dab322c8870888508be 100644
--- a/sync/tools/sync_listen_notifications.cc
+++ b/sync/tools/sync_listen_notifications.cc
@@ -24,7 +24,7 @@
#include "net/base/transport_security_state.h"
#include "net/url_request/url_request_test_util.h"
#include "sync/internal_api/public/base/model_type.h"
-#include "sync/internal_api/public/base/model_type_state_map.h"
+#include "sync/internal_api/public/base/model_type_invalidation_map.h"
#include "sync/notifier/invalidation_state_tracker.h"
#include "sync/notifier/invalidation_handler.h"
#include "sync/notifier/invalidation_util.h"
@@ -60,12 +60,13 @@ class NotificationPrinter : public InvalidationHandler {
}
virtual void OnIncomingInvalidation(
- const ObjectIdStateMap& id_state_map,
+ const ObjectIdInvalidationMap& invalidation_map,
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) {
+ const ModelTypeInvalidationMap& type_invalidation_map =
+ ObjectIdInvalidationMapToModelTypeInvalidationMap(invalidation_map);
+ for (ModelTypeInvalidationMap::const_iterator it =
+ type_invalidation_map.begin(); it != type_invalidation_map.end();
+ ++it) {
LOG(INFO) << (source == REMOTE_INVALIDATION ? "Remote" : "Local")
<< " Invalidation: type = "
<< ModelTypeToString(it->first)
« no previous file with comments | « sync/test/engine/syncer_command_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698