Index: chrome/browser/ui/tabs/tab_strip_model.cc |
diff --git a/chrome/browser/ui/tabs/tab_strip_model.cc b/chrome/browser/ui/tabs/tab_strip_model.cc |
index 91042c7a0a60a40aaed18397615fa5422c8fd6fb..47d5cea0da3d866a418c540949636663c627367a 100644 |
--- a/chrome/browser/ui/tabs/tab_strip_model.cc |
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc |
@@ -13,6 +13,7 @@ |
#include "chrome/app/chrome_command_ids.h" |
#include "chrome/browser/browser_shutdown.h" |
#include "chrome/browser/defaults.h" |
+#include "chrome/browser/devtools/devtools_window.h" |
#include "chrome/browser/extensions/tab_helper.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
@@ -1202,6 +1203,9 @@ bool TabStripModel::InternalCloseTabs(const std::vector<int>& indices, |
std::map<content::RenderProcessHost*, size_t> processes; |
for (size_t i = 0; i < indices.size(); ++i) { |
WebContents* closing_contents = GetWebContentsAtImpl(indices[i]); |
+ if (DevToolsWindow::GetInstanceForInspectedRenderViewHost( |
+ closing_contents->GetRenderViewHost())) |
+ continue; |
content::RenderProcessHost* process = |
closing_contents->GetRenderProcessHost(); |
++processes[process]; |