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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 10913015: Reland DownloadManager::GetAllDownloads actually does now (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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/automation/testing_automation_provider.cc
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
index 4a56a61683f6069beaafc104f68177c4ffd337dd..85eac78e4891b33bd22a0a422c51fb378ddfc2c3 100644
--- a/chrome/browser/automation/testing_automation_provider.cc
+++ b/chrome/browser/automation/testing_automation_provider.cc
@@ -2628,8 +2628,8 @@ void TestingAutomationProvider::GetDownloadsInfo(Browser* browser,
if (download_service->HasCreatedDownloadManager()) {
std::vector<DownloadItem*> downloads;
- BrowserContext::GetDownloadManager(browser->profile())->
- GetAllDownloads(FilePath(), &downloads);
+ BrowserContext::GetDownloadManager(browser->profile())->GetAllDownloads(
+ &downloads);
for (std::vector<DownloadItem*>::iterator it = downloads.begin();
it != downloads.end();
@@ -2673,7 +2673,7 @@ namespace {
DownloadItem* GetDownloadItemFromId(int id, DownloadManager* download_manager) {
std::vector<DownloadItem*> downloads;
- download_manager->GetAllDownloads(FilePath(), &downloads);
+ download_manager->GetAllDownloads(&downloads);
DownloadItem* selected_item = NULL;
for (std::vector<DownloadItem*>::iterator it = downloads.begin();

Powered by Google App Engine
This is Rietveld 408576698