diff options
Diffstat (limited to 'chrome/browser/ui/tabs/tab_strip_model.cc')
-rw-r--r-- | chrome/browser/ui/tabs/tab_strip_model.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/tabs/tab_strip_model.cc b/chrome/browser/ui/tabs/tab_strip_model.cc index 4ab2cf7..00a15e9 100644 --- a/chrome/browser/ui/tabs/tab_strip_model.cc +++ b/chrome/browser/ui/tabs/tab_strip_model.cc @@ -1157,13 +1157,13 @@ bool TabStripModel::InternalCloseTabs(const std::vector<int>& indices, close_types & CLOSE_USER_GESTURE); } - TabContents* closing_tab_contents = - TabContents::FromWebContents(closing_contents); - if (delegate_->RunUnloadListenerBeforeClosing(closing_tab_contents)) { + if (delegate_->RunUnloadListenerBeforeClosing(closing_contents)) { retval = false; continue; } + TabContents* closing_tab_contents = + TabContents::FromWebContents(closing_contents); InternalCloseTab(closing_tab_contents, index, (close_types & CLOSE_CREATE_HISTORICAL_TAB) != 0); } |