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

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

Issue 881403003: Rename gdata_errorcode.h to drive_api_error_codes.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typos in BUILD.gn Created 5 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
Index: chrome/browser/chromeos/drive/file_errors.cc
diff --git a/chrome/browser/chromeos/drive/file_errors.cc b/chrome/browser/chromeos/drive/file_errors.cc
index 5533f63bc291e7efcbdab013d133d537663be30a..1fb57c9d5c29c1c1647fc31ce5c74c222fa86115 100644
--- a/chrome/browser/chromeos/drive/file_errors.cc
+++ b/chrome/browser/chromeos/drive/file_errors.cc
@@ -136,7 +136,7 @@ base::File::Error FileErrorToBaseFileError(FileError error) {
return base::File::FILE_ERROR_FAILED;
}
-FileError GDataToFileError(google_apis::GDataErrorCode status) {
+FileError GDataToFileError(google_apis::DriveApiErrorCode status) {
switch (status) {
case google_apis::HTTP_SUCCESS:
case google_apis::HTTP_CREATED:
@@ -153,11 +153,11 @@ FileError GDataToFileError(google_apis::GDataErrorCode status) {
return FILE_ERROR_SERVICE_UNAVAILABLE;
case google_apis::HTTP_NOT_IMPLEMENTED:
return FILE_ERROR_INVALID_OPERATION;
- case google_apis::GDATA_CANCELLED:
+ case google_apis::DRIVE_CANCELLED:
return FILE_ERROR_ABORT;
- case google_apis::GDATA_NO_CONNECTION:
+ case google_apis::DRIVE_NO_CONNECTION:
return FILE_ERROR_NO_CONNECTION;
- case google_apis::GDATA_NO_SPACE:
+ case google_apis::DRIVE_NO_SPACE:
return FILE_ERROR_NO_SERVER_SPACE;
default:
return FILE_ERROR_FAILED;

Powered by Google App Engine
This is Rietveld 408576698