summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/debugger')
-rw-r--r--chrome/browser/debugger/devtools_window.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/debugger/devtools_window.cc b/chrome/browser/debugger/devtools_window.cc
index 9c5705c..75fb4fe 100644
--- a/chrome/browser/debugger/devtools_window.cc
+++ b/chrome/browser/debugger/devtools_window.cc
@@ -127,8 +127,12 @@ void DevToolsWindow::Show() {
}
void DevToolsWindow::Activate() {
- if (!docked_ && !browser_->window()->IsActive()) {
- browser_->window()->Activate();
+ if (!docked_) {
+ if (!browser_->window()->IsActive()) {
+ browser_->window()->Activate();
+ }
+ } else {
+ inspected_window_->FocusDevTools();
}
}