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

Unified Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc

Issue 305913002: drive: Replace GetResourceListCallback in DriveServiceInterface with FileListCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/sync_file_system/drive_backend/drive_backend_util.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc b/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
index a53b9566770bd87fc61095854b3bf7529437ec59..2feeff32c470617aaa6afedcf88c23209a60f8f5 100644
--- a/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
+++ b/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
@@ -182,23 +182,6 @@ std::string GetMimeTypeFromTitle(const base::FilePath& title) {
return mime_type;
}
-scoped_ptr<google_apis::ResourceEntry> GetOldestCreatedFolderResource(
- ScopedVector<google_apis::ResourceEntry> candidates) {
- scoped_ptr<google_apis::ResourceEntry> oldest;
- for (size_t i = 0; i < candidates.size(); ++i) {
- google_apis::ResourceEntry* entry = candidates[i];
- if (!entry->is_folder() || entry->deleted())
- continue;
-
- if (!oldest || oldest->published_time() > entry->published_time()) {
- oldest.reset(entry);
- candidates[i] = NULL;
- }
- }
-
- return oldest.Pass();
-}
-
SyncStatusCode GDataErrorCodeToSyncStatusCode(
google_apis::GDataErrorCode error) {
// NOTE: Please update DriveFileSyncService::UpdateServiceState when you add

Powered by Google App Engine
This is Rietveld 408576698