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

Unified Diff: chrome/browser/chromeos/gdata/gdata_uploader.cc

Issue 10877006: Rename GDataErrorCode to DriveErrorCode, GDataFileError to DriveFileError (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor local variable name fix. Created 8 years, 4 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_uploader.h ('k') | chrome/browser/chromeos/gdata/gdata_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_uploader.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_uploader.cc b/chrome/browser/chromeos/gdata/gdata_uploader.cc
index 1f03fbacd6bd87302d5e90a800accec4f18ffa69..32212d089d02902480c48c8b26e2c38794ed9cb0 100644
--- a/chrome/browser/chromeos/gdata/gdata_uploader.cc
+++ b/chrome/browser/chromeos/gdata/gdata_uploader.cc
@@ -249,7 +249,7 @@ void GDataUploader::OpenCompletionCallback(int upload_id, int result) {
}
if (!upload_file_info->should_retry_file_open) {
UploadFailed(scoped_ptr<UploadFileInfo>(upload_file_info),
- GDATA_FILE_ERROR_NOT_FOUND);
+ DRIVE_FILE_ERROR_NOT_FOUND);
}
return;
}
@@ -258,7 +258,7 @@ void GDataUploader::OpenCompletionCallback(int upload_id, int result) {
upload_file_info->should_retry_file_open = false;
if (upload_file_info->initial_upload_location.is_empty()) {
UploadFailed(scoped_ptr<UploadFileInfo>(upload_file_info),
- GDATA_FILE_ERROR_ABORT);
+ DRIVE_FILE_ERROR_ABORT);
return;
}
drive_service_->InitiateUpload(
@@ -289,7 +289,7 @@ void GDataUploader::OnUploadLocationReceived(
if (code != HTTP_SUCCESS) {
// TODO(achuith): Handle error codes from Google Docs server.
UploadFailed(scoped_ptr<UploadFileInfo>(upload_file_info),
- GDATA_FILE_ERROR_ABORT);
+ DRIVE_FILE_ERROR_ABORT);
return;
}
@@ -425,7 +425,7 @@ void GDataUploader::OnResumeUploadResponseReceived(
upload_file_info->entry = entry.Pass();
if (!upload_file_info->completion_callback.is_null()) {
upload_file_info->completion_callback.Run(
- GDATA_FILE_OK,
+ DRIVE_FILE_OK,
scoped_ptr<UploadFileInfo>(upload_file_info));
}
return;
@@ -447,8 +447,8 @@ void GDataUploader::OnResumeUploadResponseReceived(
UploadFailed(
scoped_ptr<UploadFileInfo>(upload_file_info),
response.code == HTTP_FORBIDDEN ?
- GDATA_FILE_ERROR_NO_SPACE :
- GDATA_FILE_ERROR_ABORT);
+ DRIVE_FILE_ERROR_NO_SPACE :
+ DRIVE_FILE_ERROR_ABORT);
return;
}
@@ -461,7 +461,7 @@ void GDataUploader::OnResumeUploadResponseReceived(
}
void GDataUploader::UploadFailed(scoped_ptr<UploadFileInfo> upload_file_info,
- GDataFileError error) {
+ DriveFileError error) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
RemoveUpload(upload_file_info->upload_id);
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_uploader.h ('k') | chrome/browser/chromeos/gdata/gdata_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698