From 9e4c033c4f88780c47ebf13ab4b9f180bf63df29 Mon Sep 17 00:00:00 2001 From: "glen@chromium.org" Date: Wed, 25 Feb 2009 17:47:58 +0000 Subject: Enable history and downloads by default, port NewTabUI from DOMUIHost to DOMUI. NewTabUI is only included on OS(WIN) because DOMUI doesn't appear to have been ported. Review URL: http://codereview.chromium.org/28104 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10344 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/dom_ui/dom_ui.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chrome/browser/dom_ui/dom_ui.cc') diff --git a/chrome/browser/dom_ui/dom_ui.cc b/chrome/browser/dom_ui/dom_ui.cc index 94116b3..22e3382 100644 --- a/chrome/browser/dom_ui/dom_ui.cc +++ b/chrome/browser/dom_ui/dom_ui.cc @@ -79,6 +79,12 @@ void DOMUI::RegisterMessageCallback(const std::string &message, message_callbacks_.insert(std::make_pair(message, callback)); } +void DOMUI::RequestOpenURL(const GURL& url, + const GURL& /* referer */, + WindowOpenDisposition disposition) { + get_contents()->OpenURL(url, GURL(), disposition, PageTransition::LINK); +} + // DOMUI, protected: ---------------------------------------------------------- void DOMUI::AddMessageHandler(DOMMessageHandler* handler) { -- cgit v1.1