diff options
-rw-r--r-- | chrome/browser/external_tab_container.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc index b478f14..28a19d0 100644 --- a/chrome/browser/external_tab_container.cc +++ b/chrome/browser/external_tab_container.cc @@ -12,6 +12,7 @@ #include "base/win_util.h" #include "chrome/browser/automation/automation_provider.h" #include "chrome/browser/browser_window.h" +#include "chrome/browser/debugger/devtools_manager.h" #include "chrome/browser/load_notification_details.h" #include "chrome/browser/page_info_window.h" #include "chrome/browser/profile.h" @@ -157,6 +158,11 @@ bool ExternalTabContainer::Init(Profile* profile, void ExternalTabContainer::Uninitialize() { registrar_.RemoveAll(); if (tab_contents_) { + RenderViewHost* rvh = tab_contents_->render_view_host(); + if (rvh && DevToolsManager::GetInstance()) { + DevToolsManager::GetInstance()->UnregisterDevToolsClientHostFor(rvh); + } + NotificationService::current()->Notify( NotificationType::EXTERNAL_TAB_CLOSED, Source<NavigationController>(&tab_contents_->controller()), |