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 fa83e5c85117558c7ccb2814144e59d00dbe0b53..74d1e24757fdcbf30adb666c5bb1c15d4a0a7b94 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" |
@@ -1096,6 +1097,8 @@ 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::GetInstanceForInspectedTab(closing_contents)) |
+ continue; |
content::RenderProcessHost* process = |
closing_contents->GetRenderProcessHost(); |
++processes[process]; |