From aebdd074d36cec14457d72889db06bf210d77909 Mon Sep 17 00:00:00 2001 From: "yurys@chromium.org" Date: Thu, 7 Jul 2011 12:36:59 +0000 Subject: DevTools: devtools manager should know nothing about DevToolsWindow All code specific to DevToolsWindow moved into that class. There is no DevToolsClientHost::AsDevToolsWindow method anymore. To open devtools window clients should invoke corresponding static methods on DevToolsWindow which is the only way to create default devtools window. BUG=None TEST=Existing DevTools tests. Review URL: http://codereview.chromium.org/7322004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91695 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extensions_ui.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 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 371f977..3b7729a 100644 --- a/chrome/browser/extensions/extensions_ui.cc +++ b/chrome/browser/extensions/extensions_ui.cc @@ -35,8 +35,7 @@ #include "chrome/common/jstemplate_builder.h" #include "chrome/common/pref_names.h" #include "chrome/common/url_constants.h" -#include "content/browser/debugger/devtools_manager.h" -#include "content/browser/debugger/devtools_toggle_action.h" +#include "content/browser/debugger/devtools_window.h" #include "content/browser/renderer_host/render_process_host.h" #include "content/browser/renderer_host/render_view_host.h" #include "content/browser/renderer_host/render_widget_host.h" @@ -351,7 +350,7 @@ void ExtensionsDOMHandler::HandleInspectMessage(const ListValue* args) { return; } - DevToolsManager::GetInstance()->OpenDevToolsWindow(host); + DevToolsWindow::OpenDevToolsWindow(host); } void ExtensionsDOMHandler::HandleReloadMessage(const ListValue* args) { -- cgit v1.1