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

Unified Diff: chrome/browser/download/download_manager.cc

Issue 3442003: Regression fix: keep the download shelf visible when multiple sites are saved. (Closed)
Patch Set: Created 10 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
« no previous file with comments | « chrome/browser/download/download_manager.h ('k') | chrome/browser/download/save_package.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_manager.cc
diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc
index 16820a25c3f2d396212d87eb5d97701d9a485aad..ef9fbe526d7edbdb6978615c61f04e59fd16825d 100644
--- a/chrome/browser/download/download_manager.cc
+++ b/chrome/browser/download/download_manager.cc
@@ -127,6 +127,8 @@ void DownloadManager::Shutdown() {
in_progress_.clear();
dangerous_finished_.clear();
STLDeleteValues(&downloads_);
+ STLDeleteContainerPointers(save_page_downloads_.begin(),
+ save_page_downloads_.end());
file_manager_ = NULL;
@@ -787,6 +789,10 @@ int DownloadManager::RemoveAllDownloads() {
return RemoveDownloadsBetween(base::Time(), base::Time());
}
+void DownloadManager::SavePageAsDownloadStarted(DownloadItem* download_item) {
+ save_page_downloads_.push_back(download_item);
+}
+
// Initiate a download of a specific URL. We send the request to the
// ResourceDispatcherHost, and let it send us responses like a regular
// download.
« no previous file with comments | « chrome/browser/download/download_manager.h ('k') | chrome/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698