summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-07 06:27:41 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-07 06:27:41 +0000
commit684b4ba293df8f279147ea9d4b4bc665ec44a153 (patch)
treea712bd8032c65a38a0e8a0dffa2ed70286008f20 /chrome/browser/browser.cc
parent122336cf5ea64521747cc22ec6bd0d918ba2e489 (diff)
downloadchromium_src-684b4ba293df8f279147ea9d4b4bc665ec44a153.zip
chromium_src-684b4ba293df8f279147ea9d4b4bc665ec44a153.tar.gz
chromium_src-684b4ba293df8f279147ea9d4b4bc665ec44a153.tar.bz2
DevTools: Enable debugging of non-TabContents including extensions.
Review URL: http://codereview.chromium.org/115028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15526 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 78f1293..7d521b6 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -1053,14 +1053,8 @@ void Browser::OpenDebuggerWindow() {
void Browser::OpenJavaScriptConsole() {
UserMetrics::RecordAction(L"ShowJSConsole", profile_);
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableOutOfProcessDevTools)) {
- DevToolsManager* manager = g_browser_process->devtools_manager();
- manager->OpenDevToolsWindow(GetSelectedTabContents());
- } else {
- GetSelectedTabContents()->render_view_host()->
- ShowJavaScriptConsole();
- }
+ GetSelectedTabContents()->render_view_host()->
+ ShowJavaScriptConsole();
}
void Browser::OpenTaskManager() {