Index: chrome/browser/tabs/tab_strip_model.cc |
=================================================================== |
--- chrome/browser/tabs/tab_strip_model.cc (revision 14949) |
+++ chrome/browser/tabs/tab_strip_model.cc (working copy) |
@@ -515,6 +515,9 @@ |
bool TabStripModel::InternalCloseTabContentsAt(int index, |
bool create_historical_tab) { |
+ if (!delegate_->CanCloseContentsAt(index)) |
+ return false; |
+ |
TabContents* detached_contents = GetContentsAt(index); |
if (delegate_->RunUnloadListenerBeforeClosing(detached_contents)) |