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

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: Move responsibility of determining whether to show a download in the UI to DownloadItemModel 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 fd87ca02aa2bef88feb72aa3adc2e8247f60a1d4..5d45416bc58357350d5c8200b7bf980f3a6bb9ec 100644
--- a/chrome/browser/download/download_service.cc
+++ b/chrome/browser/download/download_service.cc
@@ -65,9 +65,8 @@ 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, scoped_ptr<DownloadUIController::Delegate>()));
// Include this download manager in the set monitored by the
// global status updater.

Powered by Google App Engine
This is Rietveld 408576698