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

Unified Diff: chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.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_wapi_feed_processor.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.cc b/chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.cc
index 4d8ba8e1f2f253909aece5d866d2f031cb487884..12a6b585b1ba98a79de639569e2737cde30ac2be 100644
--- a/chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.cc
+++ b/chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.cc
@@ -30,7 +30,7 @@ GDataWapiFeedProcessor::GDataWapiFeedProcessor(
GDataWapiFeedProcessor::~GDataWapiFeedProcessor() {
}
-GDataFileError GDataWapiFeedProcessor::ApplyFeeds(
+DriveFileError GDataWapiFeedProcessor::ApplyFeeds(
const std::vector<DocumentFeed*>& feed_list,
int64 start_changestamp,
int64 root_feed_changestamp,
@@ -42,11 +42,11 @@ GDataFileError GDataWapiFeedProcessor::ApplyFeeds(
int64 delta_feed_changestamp = 0;
FeedToFileResourceMapUmaStats uma_stats;
FileResourceIdMap file_map;
- GDataFileError error = FeedToFileResourceMap(feed_list,
+ DriveFileError error = FeedToFileResourceMap(feed_list,
&file_map,
&delta_feed_changestamp,
&uma_stats);
- if (error != GDATA_FILE_OK)
+ if (error != DRIVE_FILE_OK)
return error;
ApplyFeedFromFileUrlMap(
@@ -59,7 +59,7 @@ GDataFileError GDataWapiFeedProcessor::ApplyFeeds(
if (!is_delta_feed)
UpdateFileCountUmaHistograms(uma_stats);
- return GDATA_FILE_OK;
+ return DRIVE_FILE_OK;
}
void GDataWapiFeedProcessor::UpdateFileCountUmaHistograms(
@@ -239,7 +239,7 @@ DriveDirectory* GDataWapiFeedProcessor::FindDirectoryForNewEntry(
return dir;
}
-GDataFileError GDataWapiFeedProcessor::FeedToFileResourceMap(
+DriveFileError GDataWapiFeedProcessor::FeedToFileResourceMap(
const std::vector<DocumentFeed*>& feed_list,
FileResourceIdMap* file_map,
int64* feed_changestamp,
@@ -247,7 +247,7 @@ GDataFileError GDataWapiFeedProcessor::FeedToFileResourceMap(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(uma_stats);
- GDataFileError error = GDATA_FILE_OK;
+ DriveFileError error = DRIVE_FILE_OK;
uma_stats->num_regular_files = 0;
uma_stats->num_hosted_documents = 0;
uma_stats->num_files_with_entry_kind.clear();
@@ -302,7 +302,7 @@ GDataFileError GDataWapiFeedProcessor::FeedToFileResourceMap(
}
}
- if (error != GDATA_FILE_OK) {
+ if (error != DRIVE_FILE_OK) {
// If the code above fails to parse a feed, any DriveEntry instance
// added to |file_by_url| is not managed by a DriveDirectory instance,
// so we need to explicitly release them here.
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_wapi_feed_processor.h ('k') | chrome/browser/chromeos/gdata/gdata_wapi_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698