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

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

Issue 10914158: Revert 155351 - Make DownloadManager::GetAllDownloads return all downloads regardless of state, per… (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
===================================================================
--- chrome/browser/automation/testing_automation_provider.cc (revision 155501)
+++ chrome/browser/automation/testing_automation_provider.cc (working copy)
@@ -2643,8 +2643,8 @@
if (download_service->HasCreatedDownloadManager()) {
std::vector<DownloadItem*> downloads;
- BrowserContext::GetDownloadManager(browser->profile())->GetAllDownloads(
- &downloads);
+ BrowserContext::GetDownloadManager(browser->profile())->
+ GetAllDownloads(FilePath(), &downloads);
for (std::vector<DownloadItem*>::iterator it = downloads.begin();
it != downloads.end();
@@ -2688,7 +2688,7 @@
DownloadItem* GetDownloadItemFromId(int id, DownloadManager* download_manager) {
std::vector<DownloadItem*> downloads;
- download_manager->GetAllDownloads(&downloads);
+ download_manager->GetAllDownloads(FilePath(), &downloads);
DownloadItem* selected_item = NULL;
for (std::vector<DownloadItem*>::iterator it = downloads.begin();

Powered by Google App Engine
This is Rietveld 408576698