From 8537054e6da7e12a50ab27786dd01b253b8a0d12 Mon Sep 17 00:00:00 2001 From: "tim@chromium.org" Date: Fri, 26 Jun 2009 15:52:29 +0000 Subject: Revert cl 19359 due to browser_tests timeout. TBR=nsylvain Review URL: http://codereview.chromium.org/147206 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19363 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extensions_ui.cc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'chrome/browser/extensions/extensions_ui.cc') diff --git a/chrome/browser/extensions/extensions_ui.cc b/chrome/browser/extensions/extensions_ui.cc index 7ad40cc..6f08479 100644 --- a/chrome/browser/extensions/extensions_ui.cc +++ b/chrome/browser/extensions/extensions_ui.cc @@ -62,12 +62,9 @@ void ExtensionsUIHTMLSource::StartDataRequest(const std::string& path, // /////////////////////////////////////////////////////////////////////////////// -ExtensionsDOMHandler::ExtensionsDOMHandler( - ExtensionsService* extension_service) - : extensions_service_(extension_service) { - } - -void ExtensionsDOMHandler::RegisterMessages() { +ExtensionsDOMHandler::ExtensionsDOMHandler(DOMUI* dom_ui, + ExtensionsService* extension_service) + : DOMMessageHandler(dom_ui), extensions_service_(extension_service) { dom_ui_->RegisterMessageCallback("requestExtensionsData", NewCallback(this, &ExtensionsDOMHandler::HandleRequestExtensionsData)); dom_ui_->RegisterMessageCallback("inspect", @@ -260,13 +257,17 @@ ExtensionsDOMHandler::~ExtensionsDOMHandler() { // ExtensionsDOMHandler, public: ----------------------------------------------- +void ExtensionsDOMHandler::Init() { +} + ExtensionsUI::ExtensionsUI(TabContents* contents) : DOMUI(contents) { ExtensionsService *exstension_service = GetProfile()->GetOriginalProfile()->GetExtensionsService(); - ExtensionsDOMHandler* handler = new ExtensionsDOMHandler(exstension_service); + ExtensionsDOMHandler* handler = new ExtensionsDOMHandler(this, + exstension_service); AddMessageHandler(handler); - handler->Attach(this); + handler->Init(); ExtensionsUIHTMLSource* html_source = new ExtensionsUIHTMLSource(); -- cgit v1.1