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); |
} |