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

Unified Diff: google_apis/drive/drive_api_error_codes.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: google_apis/drive/drive_api_error_codes.cc
diff --git a/google_apis/drive/gdata_errorcode.cc b/google_apis/drive/drive_api_error_codes.cc
similarity index 73%
rename from google_apis/drive/gdata_errorcode.cc
rename to google_apis/drive/drive_api_error_codes.cc
index 89fa3f3505415706010cbbb8b64407dea679c53d..a90a887e039e55a9c2370a465f6625d489788565 100644
--- a/google_apis/drive/gdata_errorcode.cc
+++ b/google_apis/drive/drive_api_error_codes.cc
@@ -2,14 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "google_apis/drive/gdata_errorcode.h"
+#include "google_apis/drive/drive_api_error_codes.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
namespace google_apis {
-std::string GDataErrorCodeToString(GDataErrorCode error) {
+std::string DriveApiErrorCodeToString(DriveApiErrorCode error) {
switch (error) {
case HTTP_SUCCESS:
return"HTTP_SUCCESS";
@@ -65,26 +65,26 @@ std::string GDataErrorCodeToString(GDataErrorCode error) {
case HTTP_SERVICE_UNAVAILABLE:
return"HTTP_SERVICE_UNAVAILABLE";
- case GDATA_PARSE_ERROR:
- return"GDATA_PARSE_ERROR";
+ case DRIVE_PARSE_ERROR:
+ return"DRIVE_PARSE_ERROR";
- case GDATA_FILE_ERROR:
- return"GDATA_FILE_ERROR";
+ case DRIVE_FILE_ERROR:
+ return"DRIVE_FILE_ERROR";
- case GDATA_CANCELLED:
- return"GDATA_CANCELLED";
+ case DRIVE_CANCELLED:
+ return"DRIVE_CANCELLED";
- case GDATA_OTHER_ERROR:
- return"GDATA_OTHER_ERROR";
+ case DRIVE_OTHER_ERROR:
+ return"DRIVE_OTHER_ERROR";
- case GDATA_NO_CONNECTION:
- return"GDATA_NO_CONNECTION";
+ case DRIVE_NO_CONNECTION:
+ return"DRIVE_NO_CONNECTION";
- case GDATA_NOT_READY:
- return"GDATA_NOT_READY";
+ case DRIVE_NOT_READY:
+ return"DRIVE_NOT_READY";
- case GDATA_NO_SPACE:
- return"GDATA_NO_SPACE";
+ case DRIVE_NO_SPACE:
+ return"DRIVE_NO_SPACE";
}
return "UNKNOWN_ERROR_" + base::IntToString(error);

Powered by Google App Engine
This is Rietveld 408576698