diff options
author | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-20 16:36:58 +0000 |
---|---|---|
committer | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-20 16:36:58 +0000 |
commit | cb6cfb97f59dc9b0fdf8646811cc053569ce685a (patch) | |
tree | 0a8264a5194d42c9029966967e4296b0f4fb1506 /chrome | |
parent | 821b55cc3ee643d81d05d0d2bc54c0f6c094c16b (diff) | |
download | chromium_src-cb6cfb97f59dc9b0fdf8646811cc053569ce685a.zip chromium_src-cb6cfb97f59dc9b0fdf8646811cc053569ce685a.tar.gz chromium_src-cb6cfb97f59dc9b0fdf8646811cc053569ce685a.tar.bz2 |
NNTP: Remove the DownloadsHandler from the new tab page.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/174099
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/dom_ui/new_tab_ui.cc | 13 | ||||
-rw-r--r-- | chrome/browser/resources/new_new_tab.html | 3 |
2 files changed, 0 insertions, 16 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui.cc b/chrome/browser/dom_ui/new_tab_ui.cc index 0504352..6e90533 100644 --- a/chrome/browser/dom_ui/new_tab_ui.cc +++ b/chrome/browser/dom_ui/new_tab_ui.cc @@ -22,7 +22,6 @@ #include "chrome/browser/dom_ui/dom_ui_favicon_source.h" #include "chrome/browser/dom_ui/dom_ui_thumbnail_source.h" #include "chrome/browser/dom_ui/dom_ui_theme_source.h" -#include "chrome/browser/dom_ui/downloads_dom_handler.h" #include "chrome/browser/dom_ui/history_ui.h" #include "chrome/browser/dom_ui/new_tab_page_sync_handler.h" #include "chrome/browser/dom_ui/shown_sections_handler.h" @@ -1526,18 +1525,6 @@ NewTabUI::NewTabUI(TabContents* contents) &ChromeURLDataManager::AddDataSource, html_source)); } else { - DownloadManager* dlm = GetProfile()->GetDownloadManager(); - // This might be null in the case of running inside a unit test. - // TODO(arv): Fix unit tests to provide a working mock download manager. - if (dlm) { - DownloadManager* dlm = GetProfile()->GetDownloadManager(); - DownloadsDOMHandler* downloads_handler = - new DownloadsDOMHandler(dlm); - downloads_handler->Attach(this); - AddMessageHandler(downloads_handler); - downloads_handler->Init(); - } - AddMessageHandler((new ShownSectionsHandler())->Attach(this)); AddMessageHandler((new MostVisitedHandler())->Attach(this)); AddMessageHandler((new RecentlyClosedTabsHandler())->Attach(this)); diff --git a/chrome/browser/resources/new_new_tab.html b/chrome/browser/resources/new_new_tab.html index be546a0..22997b3 100644 --- a/chrome/browser/resources/new_new_tab.html +++ b/chrome/browser/resources/new_new_tab.html @@ -41,9 +41,6 @@ registerCallback('mostVisitedPages'); registerCallback('recentlyClosedTabs'); registerCallback('syncMessageChanged'); -// TODO(arv): The backend calls this function. Remove the call on the backend. -function downloadsList() {} - logEvent('log start'); </script> |