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

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

Issue 99383004: [SyncFS] Refine network error handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: buildfix 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 | « chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc ('k') | 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_backend/uninstall_app_task.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/uninstall_app_task.cc b/chrome/browser/sync_file_system/drive_backend/uninstall_app_task.cc
index 35bd732ff5cbeb6f2e4aa6635fa46d0fe14f8a84..6668ac0b7b89034179662dbec197e6f68646cf30 100644
--- a/chrome/browser/sync_file_system/drive_backend/uninstall_app_task.cc
+++ b/chrome/browser/sync_file_system/drive_backend/uninstall_app_task.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h"
#include "chrome/browser/sync_file_system/drive_backend/tracker_set.h"
+#include "chrome/browser/sync_file_system/drive_backend_v1/drive_file_sync_util.h"
#include "chrome/browser/sync_file_system/syncable_file_system_util.h"
#include "google_apis/drive/drive_api_parser.h"
#include "google_apis/drive/gdata_wapi_parser.h"
@@ -70,7 +71,8 @@ void UninstallAppTask::Run(const SyncStatusCallback& callback) {
void UninstallAppTask::DidDeleteAppRoot(const SyncStatusCallback& callback,
int64 change_id,
google_apis::GDataErrorCode error) {
- if (error != google_apis::HTTP_SUCCESS &&
+ SyncStatusCode status = GDataErrorCodeToSyncStatusCode(error);
+ if (status != SYNC_STATUS_OK &&
error != google_apis::HTTP_NOT_FOUND) {
callback.Run(SYNC_STATUS_FAILED);
return;
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698