Index: chrome/browser/download/download_service.cc |
diff --git a/chrome/browser/download/download_service.cc b/chrome/browser/download/download_service.cc |
index 13fceb8cfc7d9a32dabf4f51713e505351b2c3df..7838e2d758ddd95495784508c9537944fb0b15b7 100644 |
--- a/chrome/browser/download/download_service.cc |
+++ b/chrome/browser/download/download_service.cc |
@@ -10,6 +10,7 @@ |
#include "chrome/browser/download/download_history.h" |
#include "chrome/browser/download/download_service_factory.h" |
#include "chrome/browser/download/download_status_updater.h" |
+#include "chrome/browser/download/download_ui_controller.h" |
#include "chrome/browser/extensions/api/downloads/downloads_api.h" |
#include "chrome/browser/history/history_service.h" |
#include "chrome/browser/history/history_service_factory.h" |
@@ -61,6 +62,12 @@ ChromeDownloadManagerDelegate* DownloadService::GetDownloadManagerDelegate() { |
new DownloadHistory::HistoryAdapter(hs)))); |
} |
+ // 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())); |
+ |
// Include this download manager in the set monitored by the |
// global status updater. |
g_browser_process->download_status_updater()->AddManager(manager); |