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

Unified Diff: chrome/browser/chromeos/drive/sync_client.cc

Issue 149243005: Files.app: Ignore FILE_ERROR_ABORT error when sync update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/chromeos/drive/sync_client.cc
diff --git a/chrome/browser/chromeos/drive/sync_client.cc b/chrome/browser/chromeos/drive/sync_client.cc
index a679f3f8db1684d6b7162ccebbb5982c2e6cd968..f17b7890684db095c5db06e1615bc4ffa9fbefcb 100644
--- a/chrome/browser/chromeos/drive/sync_client.cc
+++ b/chrome/browser/chromeos/drive/sync_client.cc
@@ -397,6 +397,9 @@ void SyncClient::OnUpdateComplete(const std::string& local_id,
DVLOG(1) << "Updated " << local_id;
} else {
switch (error) {
+ case FILE_ERROR_ABORT:
+ // Ignore it because this is caused by user's cancel operations.
+ break;
case FILE_ERROR_NO_CONNECTION:
// Add the task again so that we'll retry once the connection is back.
AddUpdateTaskInternal(ClientContext(BACKGROUND), local_id,
@@ -409,6 +412,7 @@ void SyncClient::OnUpdateComplete(const std::string& local_id,
file_system::DRIVE_SYNC_ERROR_SERVICE_UNAVAILABLE,
local_id);
break;
+
hashimoto 2014/01/29 08:35:19 nit: This blank line is not needed.
hirono 2014/01/29 10:35:31 Done.
default:
operation_observer_->OnDriveSyncError(
file_system::DRIVE_SYNC_ERROR_MISC,
« 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