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

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

Issue 11106007: drive: Rename 'gdata' namespace to 'drive' in chrome/browser/chromeos/drive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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/drive_file_system_util.cc
diff --git a/chrome/browser/chromeos/drive/drive_file_system_util.cc b/chrome/browser/chromeos/drive/drive_file_system_util.cc
index 9672358992b931ac559841ffc7a3341c10f030c6..909ce6e0a6e0918403ef4fcb4dc91f385b4bb6f7 100644
--- a/chrome/browser/chromeos/drive/drive_file_system_util.cc
+++ b/chrome/browser/chromeos/drive/drive_file_system_util.cc
@@ -34,7 +34,7 @@
using content::BrowserThread;
-namespace gdata {
+namespace drive {
namespace util {
namespace {
@@ -418,23 +418,23 @@ void EnsureDirectoryExists(Profile* profile,
}
}
-DriveFileError GDataToDriveFileError(GDataErrorCode status) {
+DriveFileError GDataToDriveFileError(gdata::GDataErrorCode status) {
switch (status) {
- case HTTP_SUCCESS:
- case HTTP_CREATED:
+ case gdata::HTTP_SUCCESS:
+ case gdata::HTTP_CREATED:
return DRIVE_FILE_OK;
- case HTTP_UNAUTHORIZED:
- case HTTP_FORBIDDEN:
+ case gdata::HTTP_UNAUTHORIZED:
+ case gdata::HTTP_FORBIDDEN:
return DRIVE_FILE_ERROR_ACCESS_DENIED;
- case HTTP_NOT_FOUND:
+ case gdata::HTTP_NOT_FOUND:
return DRIVE_FILE_ERROR_NOT_FOUND;
- case GDATA_PARSE_ERROR:
- case GDATA_FILE_ERROR:
+ case gdata::GDATA_PARSE_ERROR:
+ case gdata::GDATA_FILE_ERROR:
return DRIVE_FILE_ERROR_ABORT;
- case GDATA_NO_CONNECTION:
+ case gdata::GDATA_NO_CONNECTION:
return DRIVE_FILE_ERROR_NO_CONNECTION;
- case HTTP_SERVICE_UNAVAILABLE:
- case HTTP_INTERNAL_SERVER_ERROR:
+ case gdata::HTTP_SERVICE_UNAVAILABLE:
+ case gdata::HTTP_INTERNAL_SERVER_ERROR:
return DRIVE_FILE_ERROR_THROTTLED;
default:
return DRIVE_FILE_ERROR_FAILED;
@@ -462,4 +462,4 @@ bool IsConnectionTypeCellular() {
}
} // namespace util
-} // namespace gdata
+} // namespace drive

Powered by Google App Engine
This is Rietveld 408576698