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

Unified Diff: chrome/browser/download/download_status_updater.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/download/download_status_updater.cc
diff --git a/chrome/browser/download/download_status_updater.cc b/chrome/browser/download/download_status_updater.cc
index 489d3be813ca3fd6cacec1b994df672ffda99fd0..1d09f1535f544044415b931d8eec945f586e1392 100644
--- a/chrome/browser/download/download_status_updater.cc
+++ b/chrome/browser/download/download_status_updater.cc
@@ -53,12 +53,12 @@ void DownloadStatusUpdater::AddManager(content::DownloadManager* manager) {
// Methods inherited from content::DownloadManager::Observer.
void DownloadStatusUpdater::ModelChanged(content::DownloadManager* manager) {
std::vector<content::DownloadItem*> downloads;
- manager->SearchDownloads(string16(), &downloads);
+ manager->GetAllDownloads(&downloads);
std::vector<content::DownloadItem*> added_downloads;
for (std::vector<content::DownloadItem*>::iterator it = downloads.begin();
it != downloads.end(); ++it) {
- if (UpdateItem(*it))
+ if (!(*it)->IsTemporary() && UpdateItem(*it))
added_downloads.push_back(*it);
}
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | chrome/browser/download/download_status_updater_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698