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

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

Issue 230103002: [Downloads] Ask DownloadHistory if a download was from history. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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_service.cc
diff --git a/chrome/browser/download/download_service.cc b/chrome/browser/download/download_service.cc
index 13503dc43f2a79aac29a515affd2b74f96ff723e..6ba1f6249e88326e56bb1595269cfff38307911a 100644
--- a/chrome/browser/download/download_service.cc
+++ b/chrome/browser/download/download_service.cc
@@ -66,8 +66,11 @@ ChromeDownloadManagerDelegate* DownloadService::GetDownloadManagerDelegate() {
// Pass an empty delegate when constructing the DownloadUIController. The
// default delegate does all the notifications we need.
scoped_ptr<DownloadUIController::Delegate> empty_ui_delegate;
- download_ui_.reset(new DownloadUIController(manager,
- empty_ui_delegate.Pass()));
+ download_ui_.reset(new DownloadUIController(
+ manager,
+ DownloadUIController::NewDownloadFilterFromDownloadHistory(
+ download_history_.get()),
+ empty_ui_delegate.Pass()));
// Include this download manager in the set monitored by the
// global status updater.

Powered by Google App Engine
This is Rietveld 408576698