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

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

Issue 18506002: drive/syncFS: Switch to ID based download URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: chrome/browser/sync_file_system/drive_backend/api_util.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/api_util.cc b/chrome/browser/sync_file_system/drive_backend/api_util.cc
index 4fe47835e0bd8ecdc52940c72844087f0cd47128..dc663299063482827427e45f37eba6077ff7c752 100644
--- a/chrome/browser/sync_file_system/drive_backend/api_util.cc
+++ b/chrome/browser/sync_file_system/drive_backend/api_util.cc
@@ -723,9 +723,9 @@ void APIUtil::DownloadFileInternal(
}
DVLOG(2) << "Downloading file: " << entry->resource_id();
- const GURL& download_url = entry->download_url();
+ const std::string& resource_id = entry->resource_id();
drive_service_->DownloadFile(local_file_path,
- download_url,
+ resource_id,
base::Bind(&APIUtil::DidDownloadFile,
AsWeakPtr(),
base::Passed(&entry),
« no previous file with comments | « chrome/browser/drive/gdata_wapi_service.cc ('k') | chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698