diff options
-rw-r--r-- | chrome/browser/external_tab_container.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/external_tab_container.cc b/chrome/browser/external_tab_container.cc index b4bd12b..df19c1d 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" @@ -156,6 +157,10 @@ bool ExternalTabContainer::Init(Profile* profile, } void ExternalTabContainer::Uninitialize() { + RenderViewHost* rvh = tab_contents_->render_view_host(); + if (rvh) { + DevToolsManager::GetInstance()->UnregisterDevToolsClientHostFor(rvh); + } registrar_.RemoveAll(); if (tab_contents_) { NotificationService::current()->Notify( |