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

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

Issue 11665029: Sync FileSystem: Mark empty batch sync origin as incremental sync origin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
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 84222cecad3aadaa65c0ce986420ee90db9705d1..91c58b9374ec56e3b9de7f5f44e9e1db77e01d1d 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/drive_file_sync_service.cc
@@ -887,6 +887,11 @@ void DriveFileSyncService::DidGetDirectoryContentForBatchSync(
return;
}
+ if (metadata_store_->IsBatchSyncOrigin(origin) &&
+ !ContainsKey(url_to_change_, origin)) {
kinuko 2013/01/04 10:38:54 This is not directly related to this change, but c
tzik 2013/01/07 08:37:55 Let me rename to 'origin_to_changes_map_'. Its typ
+ metadata_store_->MoveBatchSyncOriginToIncremental(origin);
+ }
+
NotifyTaskDone(fileapi::SYNC_STATUS_OK, token.Pass());
}

Powered by Google App Engine
This is Rietveld 408576698