Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: chrome/browser/debugger/devtools_window.cc

Issue 155206: DevTools: remove extensions-related workaround from the docked devtools windo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_browser_event_router.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/devtools_window.cc
===================================================================
--- chrome/browser/debugger/devtools_window.cc (revision 20134)
+++ chrome/browser/debugger/devtools_window.cc (working copy)
@@ -91,13 +91,8 @@
// 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.
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_browser_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698