summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/downloads_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/dom_ui/downloads_ui.cc')
-rw-r--r--chrome/browser/dom_ui/downloads_ui.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/dom_ui/downloads_ui.cc b/chrome/browser/dom_ui/downloads_ui.cc
index 6840b00..df1c21c 100644
--- a/chrome/browser/dom_ui/downloads_ui.cc
+++ b/chrome/browser/dom_ui/downloads_ui.cc
@@ -121,9 +121,9 @@ DownloadsUI::DownloadsUI(TabContents* contents) : DOMUI(contents) {
DownloadManager* dlm = GetProfile()->GetOriginalProfile()->
GetDownloadManager();
- DownloadsDOMHandler* handler = new DownloadsDOMHandler(this, dlm);
+ DownloadsDOMHandler* handler = new DownloadsDOMHandler(dlm);
AddMessageHandler(handler);
- handler->Init();
+ handler->Attach(this);
DownloadsUIHTMLSource* html_source = new DownloadsUIHTMLSource();