| Index: sync/internal_api/debug_info_event_listener.cc
|
| diff --git a/sync/internal_api/debug_info_event_listener.cc b/sync/internal_api/debug_info_event_listener.cc
|
| index 64bbab87ed11d44982088d168a45243595959fe0..93627412715efb666508c85d8a9c88f3fe54cb55 100644
|
| --- a/sync/internal_api/debug_info_event_listener.cc
|
| +++ b/sync/internal_api/debug_info_event_listener.cc
|
| @@ -135,19 +135,15 @@ void DebugInfoEventListener::OnNudgeFromDatatype(ModelType datatype) {
|
| }
|
|
|
| void DebugInfoEventListener::OnIncomingNotification(
|
| - const ObjectIdInvalidationMap& invalidations) {
|
| + const ObjectIdInvalidationMap& invalidation_map) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| sync_pb::DebugEventInfo event_info;
|
| - ModelTypeSet types = ObjectIdSetToModelTypeSet(ObjectIdInvalidationMapToSet(
|
| - invalidations));
|
| -
|
| - for (ObjectIdInvalidationMap::const_iterator it = invalidations.begin();
|
| - it != invalidations.end(); ++it) {
|
| - ModelType type = UNSPECIFIED;
|
| - if (ObjectIdToRealModelType(it->first, &type)) {
|
| - event_info.add_datatypes_notified_from_server(
|
| - GetSpecificsFieldNumberFromModelType(type));
|
| - }
|
| + ModelTypeSet types =
|
| + ObjectIdSetToModelTypeSet(invalidation_map.GetObjectIds());
|
| +
|
| + for (ModelTypeSet::Iterator it = types.First(); it.Good(); it.Inc()) {
|
| + event_info.add_datatypes_notified_from_server(
|
| + GetSpecificsFieldNumberFromModelType(it.Get()));
|
| }
|
|
|
| AddEventToQueue(event_info);
|
|
|