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

Unified Diff: chrome/browser/sync_file_system/drive_file_sync_service.cc

Issue 13913018: Acknowledge invalidations from DriveFileSyncService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698