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

Unified Diff: chrome/browser/drive/drive_api_service.cc

Issue 18211008: Add resource ID based download requests in {GDataWapi/Drive} requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reorder parameters. Created 7 years, 6 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 | « no previous file | chrome/browser/drive/gdata_wapi_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/drive_api_service.cc
diff --git a/chrome/browser/drive/drive_api_service.cc b/chrome/browser/drive/drive_api_service.cc
index eceac4d2bfff15cf295b9882308b2272f00b1c99..8831492e444eed2463275a9180b1980ff8209883 100644
--- a/chrome/browser/drive/drive_api_service.cc
+++ b/chrome/browser/drive/drive_api_service.cc
@@ -27,7 +27,7 @@ using google_apis::AuthorizeAppCallback;
using google_apis::CancelCallback;
using google_apis::ChangeList;
using google_apis::DownloadActionCallback;
-using google_apis::DownloadFileRequest;
+using google_apis::DownloadFileRequestBase;
using google_apis::EntryActionCallback;
using google_apis::FileList;
using google_apis::FileResource;
@@ -478,13 +478,14 @@ CancelCallback DriveAPIService::DownloadFile(
DCHECK(!download_action_callback.is_null());
// get_content_callback may be null.
+ // TODO(kinaba): crbug.com/254025: use resource_id based download request.
return sender_->StartRequestWithRetry(
- new DownloadFileRequest(sender_.get(),
- download_action_callback,
- get_content_callback,
- progress_callback,
- download_url,
- local_cache_path));
+ new DownloadFileRequestBase(sender_.get(),
+ download_action_callback,
+ get_content_callback,
+ progress_callback,
+ download_url,
+ local_cache_path));
}
CancelCallback DriveAPIService::DeleteResource(
« no previous file with comments | « no previous file | chrome/browser/drive/gdata_wapi_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698