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

Unified Diff: chrome/browser/drive/fake_drive_service.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/drive/fake_drive_service.cc
diff --git a/chrome/browser/drive/fake_drive_service.cc b/chrome/browser/drive/fake_drive_service.cc
index 2e9805ee013720e6ae537409f30ea27784e893aa..28899cf7cb2a06efe5305b05eae7b148e510dbd8 100644
--- a/chrome/browser/drive/fake_drive_service.cc
+++ b/chrome/browser/drive/fake_drive_service.cc
@@ -551,7 +551,7 @@ CancelCallback FakeDriveService::DeleteResource(
CancelCallback FakeDriveService::DownloadFile(
const base::FilePath& local_cache_path,
- const GURL& download_url,
+ const std::string& resource_id,
const DownloadActionCallback& download_action_callback,
const GetContentCallback& get_content_callback,
const ProgressCallback& progress_callback) {
@@ -568,7 +568,7 @@ CancelCallback FakeDriveService::DownloadFile(
}
// The field content.src is the URL to download the file.
- base::DictionaryValue* entry = FindEntryByContentUrl(download_url);
+ base::DictionaryValue* entry = FindEntryByResourceId(resource_id);
if (!entry) {
base::MessageLoopProxy::current()->PostTask(
FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698