diff options
author | caseq@google.com <caseq@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-06 13:45:43 +0000 |
---|---|---|
committer | caseq@google.com <caseq@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-06 13:45:43 +0000 |
commit | 81b02cdd84c0bfa65b97f60cec7d62c31741956a (patch) | |
tree | 17e68afff86c18f6920ae3ccf1e1579592a6c355 /chrome/browser/debugger | |
parent | f575c3600abdfde7287ee5c84552ecbfaa95f5d9 (diff) | |
download | chromium_src-81b02cdd84c0bfa65b97f60cec7d62c31741956a.zip chromium_src-81b02cdd84c0bfa65b97f60cec7d62c31741956a.tar.gz chromium_src-81b02cdd84c0bfa65b97f60cec7d62c31741956a.tar.bz2 |
Pass inspected tab id to DevTools front-end
before initializing DevTools extensions.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3519004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61630 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger')
-rw-r--r-- | chrome/browser/debugger/devtools_window.cc | 4 |
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(); |