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

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: 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 d763ac0b55f77de3916455573f8173755f0e08ae..2c38da5280ea23afbaf5970ae49fb397135e1995 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,20 +418,20 @@ 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;
default:
return DRIVE_FILE_ERROR_FAILED;
@@ -459,4 +459,4 @@ bool IsConnectionTypeCellular() {
}
} // namespace util
-} // namespace gdata
+} // namespace drive

Powered by Google App Engine
This is Rietveld 408576698