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

Unified Diff: chrome/browser/chromeos/gdata/gdata_protocol_handler.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
Index: chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc b/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
index bb554aafc60084438b8099f37ca904e1ba638ea9..d0607a5127e271dcc79cc1bc5828347db33f79f9 100644
--- a/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
+++ b/chrome/browser/chromeos/gdata/gdata_protocol_handler.cc
@@ -163,7 +163,7 @@ class GDataURLRequestJob : public net::URLRequestJob {
// Helper callback for handling async responses from
// GDataFileSystem::GetFileByResourceId().
- void OnGetFileByResourceId(GDataFileError error,
+ void OnGetFileByResourceId(DriveFileError error,
const FilePath& local_file_path,
const std::string& mime_type,
DriveFileType file_type);
@@ -174,7 +174,7 @@ class GDataURLRequestJob : public net::URLRequestJob {
// Helper callback for GetEntryInfoByResourceId invoked by StartAsync.
void OnGetEntryInfoByResourceId(const std::string& resource_id,
- GDataFileError error,
+ DriveFileError error,
const FilePath& gdata_file_path,
scoped_ptr<DriveEntryProto> entry_proto);
@@ -508,13 +508,13 @@ void GDataURLRequestJob::StartAsync(GDataFileSystemInterface** file_system) {
void GDataURLRequestJob::OnGetEntryInfoByResourceId(
const std::string& resource_id,
- GDataFileError error,
+ DriveFileError error,
const FilePath& gdata_file_path,
scoped_ptr<DriveEntryProto> entry_proto) {
if (entry_proto.get() && !entry_proto->has_file_specific_info())
- error = GDATA_FILE_ERROR_NOT_FOUND;
+ error = DRIVE_FILE_ERROR_NOT_FOUND;
- if (error == GDATA_FILE_OK) {
+ if (error == DRIVE_FILE_OK) {
DCHECK(entry_proto.get());
mime_type_ = entry_proto->file_specific_info().content_mime_type();
gdata_file_path_ = gdata_file_path;
@@ -654,14 +654,14 @@ bool GDataURLRequestJob::ReadFromDownloadData() {
}
void GDataURLRequestJob::OnGetFileByResourceId(
- GDataFileError error,
+ DriveFileError error,
const FilePath& local_file_path,
const std::string& mime_type,
DriveFileType file_type) {
DVLOG(1) << "Got OnGetFileByResourceId";
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- if (error != GDATA_FILE_OK || file_type != REGULAR_FILE) {
+ if (error != DRIVE_FILE_OK || file_type != REGULAR_FILE) {
LOG(WARNING) << "Failed to start request: can't get file for resource id";
NotifyStartError(net::URLRequestStatus(net::URLRequestStatus::FAILED,
net::ERR_FILE_NOT_FOUND));
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system_unittest.cc ('k') | chrome/browser/chromeos/gdata/gdata_sync_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698