summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger/devtools_window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/debugger/devtools_window.cc')
-rw-r--r--chrome/browser/debugger/devtools_window.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/debugger/devtools_window.cc b/chrome/browser/debugger/devtools_window.cc
index a185444..bdbdf61 100644
--- a/chrome/browser/debugger/devtools_window.cc
+++ b/chrome/browser/debugger/devtools_window.cc
@@ -251,6 +251,10 @@ void DevToolsWindow::SetAttachedWindow() {
void DevToolsWindow::AddDevToolsExtensionsToClient() {
+ if (inspected_tab_) {
+ FundamentalValue tabId(inspected_tab_->controller().session_id().id());
+ CallClientFunction(L"WebInspector.setInspectedTabId", tabId);
+ }
ListValue results;
const ExtensionsService* extension_service = tab_contents_->profile()->
GetOriginalProfile()->GetExtensionsService();