diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 08:58:31 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 08:58:31 +0000 |
commit | c250d0224a2ff6befb6a1692f2ed596b09f17447 (patch) | |
tree | 2437da6d53f254684f3b31da9bb1ad065bfcef39 /chrome/browser/debugger/devtools_window.cc | |
parent | e17a8a157bc8b8ba60854296e9ed07137aed8487 (diff) | |
download | chromium_src-c250d0224a2ff6befb6a1692f2ed596b09f17447.zip chromium_src-c250d0224a2ff6befb6a1692f2ed596b09f17447.tar.gz chromium_src-c250d0224a2ff6befb6a1692f2ed596b09f17447.tar.bz2 |
DevTools: remove extensions-related workaround from the docked devtools window destruction.
Review URL: http://codereview.chromium.org/155206
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20139 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/devtools_window.cc')
-rw-r--r-- | chrome/browser/debugger/devtools_window.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/chrome/browser/debugger/devtools_window.cc b/chrome/browser/debugger/devtools_window.cc index acb87c2..9c5705c 100644 --- a/chrome/browser/debugger/devtools_window.cc +++ b/chrome/browser/debugger/devtools_window.cc @@ -91,13 +91,8 @@ void DevToolsWindow::InspectedTabClosing() { // Update dev tools to reflect removed dev tools window. inspected_window_->UpdateDevTools(); // In case of docked tab_contents we own it, so delete here. + delete tab_contents_; - // Instead of deleting tab contents, we add it into the - // stub browser and initiate regular closure; - Browser* b = Browser::Create(profile_); - b->tabstrip_model()->AddTabContents(tab_contents_, -1, false, - PageTransition::START_PAGE, true); - b->CloseAllTabs(); delete this; } else { // First, initiate self-destruct to free all the registrars. |