Index: sync/sessions/nudge_tracker.cc |
diff --git a/sync/sessions/nudge_tracker.cc b/sync/sessions/nudge_tracker.cc |
index 8ec8970ef36b1a3c82a36b4cfc33c689218e64ec..27947476f4622c44cf552000db29fe33359e3a94 100644 |
--- a/sync/sessions/nudge_tracker.cc |
+++ b/sync/sessions/nudge_tracker.cc |
@@ -96,16 +96,17 @@ void NudgeTracker::RecordRemoteInvalidation( |
const ObjectIdInvalidationMap& invalidation_map) { |
updates_source_ = sync_pb::GetUpdatesCallerInfo::NOTIFICATION; |
- for (ObjectIdInvalidationMap::const_iterator it = invalidation_map.begin(); |
- it != invalidation_map.end(); ++it) { |
+ ObjectIdSet ids = invalidation_map.GetObjectIds(); |
+ for (ObjectIdSet::const_iterator it = ids.begin(); it != ids.end(); ++it) { |
ModelType type; |
- if (!ObjectIdToRealModelType(it->first, &type)) { |
+ if (!ObjectIdToRealModelType(*it, &type)) { |
NOTREACHED() |
- << "Object ID " << ObjectIdToString(it->first) |
+ << "Object ID " << ObjectIdToString(*it) |
<< " does not map to valid model type"; |
} |
DCHECK(type_trackers_.find(type) != type_trackers_.end()); |
- type_trackers_[type].RecordRemoteInvalidation(it->second.payload); |
+ type_trackers_[type].RecordRemoteInvalidations( |
+ invalidation_map.ForObject(*it)); |
} |
} |