Index: chrome/browser/sync_file_system/drive_file_sync_service.cc |
diff --git a/chrome/browser/sync_file_system/drive_file_sync_service.cc b/chrome/browser/sync_file_system/drive_file_sync_service.cc |
index 15691f49b200566218c8d31596a2ac4fc89ad3df..057e77931acea598e23ced51fc26c51ce4930461 100644 |
--- a/chrome/browser/sync_file_system/drive_file_sync_service.cc |
+++ b/chrome/browser/sync_file_system/drive_file_sync_service.cc |
@@ -167,6 +167,14 @@ void DriveFileSyncService::OnIncomingInvalidation( |
ipc::invalidation::ObjectSource::COSMO_CHANGELOG, |
kDriveInvalidationObjectId); |
DCHECK_EQ(1U, invalidation_map.count(object_id)); |
+ // TODO(dcheng): Only acknowledge the invalidation once the fetch has |
+ // completed. http://crbug.com/156843 |
+ ProfileSyncService* profile_sync_service = |
+ ProfileSyncServiceFactory::GetForProfile(profile_); |
+ CHECK(profile_sync_service); |
+ profile_sync_service->AcknowledgeInvalidation( |
+ invalidation_map.begin()->first, |
+ invalidation_map.begin()->second.ack_handle); |
may_have_unfetched_changes_ = true; |
MaybeStartFetchChanges(); |