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

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

Issue 11437044: Add RemoteChangeProcessor::ClearLocalChanges (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/local_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/local_file_sync_service.cc b/chrome/browser/sync_file_system/local_file_sync_service.cc
index db004e61d7e7addb6c831aa7aa0ae9fb7dd2df50..23ac5f6d675d6a4f74146f51347d87889aa512f4 100644
--- a/chrome/browser/sync_file_system/local_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/local_file_sync_service.cc
@@ -182,6 +182,14 @@ void LocalFileSyncService::ApplyRemoteChange(
change, local_path, url, callback);
}
+void LocalFileSyncService::ClearLocalChanges(
+ const fileapi::FileSystemURL& url,
+ const base::Closure& completion_callback) {
+ DCHECK(ContainsKey(origin_to_contexts_, url.origin()));
+ sync_context_->ClearChangesForURL(origin_to_contexts_[url.origin()],
+ url, completion_callback);
+}
+
void LocalFileSyncService::RecordFakeLocalChange(
const fileapi::FileSystemURL& url,
const fileapi::FileChange& change,

Powered by Google App Engine
This is Rietveld 408576698