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..a6c2c7a36b570823cb5b03f2856dd54068c10a16 100644 |
--- a/chrome/browser/ui/tabs/tab_strip_model.cc |
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc |
@@ -1202,6 +1202,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 (delegate_->ShouldRunUnloadListenerBeforeClosing(closing_contents)) |
+ continue; |
content::RenderProcessHost* process = |
closing_contents->GetRenderProcessHost(); |
++processes[process]; |