diff options
author | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 15:52:29 +0000 |
---|---|---|
committer | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-26 15:52:29 +0000 |
commit | 8537054e6da7e12a50ab27786dd01b253b8a0d12 (patch) | |
tree | ec43ed5313377170b8446c71e1c0a5727953af3f /chrome/browser/extensions/extensions_ui.cc | |
parent | 0fda727e08d2f785ce127fba39c4ce69955fa934 (diff) | |
download | chromium_src-8537054e6da7e12a50ab27786dd01b253b8a0d12.zip chromium_src-8537054e6da7e12a50ab27786dd01b253b8a0d12.tar.gz chromium_src-8537054e6da7e12a50ab27786dd01b253b8a0d12.tar.bz2 |
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
Diffstat (limited to 'chrome/browser/extensions/extensions_ui.cc')
-rw-r--r-- | chrome/browser/extensions/extensions_ui.cc | 17 |
1 files changed, 9 insertions, 8 deletions
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(); |