| Index: sync/engine/sync_scheduler_impl.cc
|
| diff --git a/sync/engine/sync_scheduler_impl.cc b/sync/engine/sync_scheduler_impl.cc
|
| index e4509e44757bb5fa90618bc18c97572db409f9f8..93eb0fbc04ba5fd0748e341071037cb908fad8da 100644
|
| --- a/sync/engine/sync_scheduler_impl.cc
|
| +++ b/sync/engine/sync_scheduler_impl.cc
|
| @@ -16,6 +16,7 @@
|
| #include "base/message_loop/message_loop.h"
|
| #include "sync/engine/backoff_delay_provider.h"
|
| #include "sync/engine/syncer.h"
|
| +#include "sync/notifier/object_id_invalidation_map.h"
|
| #include "sync/protocol/proto_enum_conversions.h"
|
| #include "sync/protocol/sync.pb.h"
|
| #include "sync/util/data_type_histogram.h"
|
| @@ -389,14 +390,15 @@ void SyncSchedulerImpl::ScheduleLocalRefreshRequest(
|
|
|
| void SyncSchedulerImpl::ScheduleInvalidationNudge(
|
| const TimeDelta& desired_delay,
|
| - const ModelTypeInvalidationMap& invalidation_map,
|
| + const ObjectIdInvalidationMap& invalidation_map,
|
| const tracked_objects::Location& nudge_location) {
|
| DCHECK(CalledOnValidThread());
|
| DCHECK(!invalidation_map.empty());
|
|
|
| SDVLOG_LOC(nudge_location, 2)
|
| << "Scheduling sync because we received invalidation for "
|
| - << ModelTypeInvalidationMapToString(invalidation_map);
|
| + << ModelTypeSetToString(ObjectIdSetToModelTypeSet(
|
| + ObjectIdInvalidationMapToSet(invalidation_map)));
|
| nudge_tracker_.RecordRemoteInvalidation(invalidation_map);
|
| ScheduleNudgeImpl(desired_delay, nudge_location);
|
| }
|
| @@ -552,9 +554,6 @@ void SyncSchedulerImpl::HandleFailure(
|
| }
|
|
|
| void SyncSchedulerImpl::DoPollSyncSessionJob() {
|
| - ModelSafeRoutingInfo r;
|
| - ModelTypeInvalidationMap invalidation_map =
|
| - ModelSafeRoutingInfoToInvalidationMap(r, std::string());
|
| base::AutoReset<bool> protector(&no_scheduling_allowed_, true);
|
|
|
| if (!CanRunJobNow(NORMAL_PRIORITY)) {
|
|
|