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

Unified Diff: chrome/browser/sync_file_system/drive_backend/conflict_resolver.cc

Issue 101223003: SyncFS: Handle HTTP_CONFLICT as Precondition error (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/conflict_resolver.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/conflict_resolver.cc b/chrome/browser/sync_file_system/drive_backend/conflict_resolver.cc
index 53d209ec12eff11038423cfa71076acc5edc26b0..fa24d74f2e88e97e0d0712c59d9a0113fb6fe019 100644
--- a/chrome/browser/sync_file_system/drive_backend/conflict_resolver.cc
+++ b/chrome/browser/sync_file_system/drive_backend/conflict_resolver.cc
@@ -202,7 +202,8 @@ void ConflictResolver::RemoveNonPrimaryFiles(
void ConflictResolver::DidRemoveFile(const SyncStatusCallback& callback,
const std::string& file_id,
google_apis::GDataErrorCode error) {
- if (error == google_apis::HTTP_PRECONDITION) {
+ if (error == google_apis::HTTP_PRECONDITION ||
+ error == google_apis::HTTP_CONFLICT) {
callback.Run(SYNC_STATUS_RETRY);
return;
}
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/local_to_remote_syncer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698