Index: chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc |
diff --git a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc |
index bef8148434fedc07cc020fca09abf4a254ea0293..8cf63f9c7673bbbb2c735c80329e27b0d31e93b3 100644 |
--- a/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc |
+++ b/chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc |
@@ -10,6 +10,7 @@ |
#include "chrome/browser/favicon/favicon_tab_helper.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/tabs/tab_strip_model.h" |
+#include "chrome/browser/tabs/tab_strip_selection_model.h" |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
#include "chrome/browser/ui/tabs/tab_menu_model.h" |
@@ -341,13 +342,9 @@ void BrowserTabStripController::TabDetachedAt(TabContentsWrapper* contents, |
tabstrip_->RemoveTabAt(model_index); |
} |
-void BrowserTabStripController::ActiveTabChanged( |
- TabContentsWrapper* old_contents, |
- TabContentsWrapper* contents, |
- int model_index, |
- bool user_gesture) { |
- tabstrip_->SelectTabAt(model_->GetIndexOfTabContents(old_contents), |
- model_index); |
+void BrowserTabStripController::TabSelectionChanged( |
+ const TabStripSelectionModel& old_model) { |
+ tabstrip_->SetSelection(old_model, model_->selection_model()); |
} |
void BrowserTabStripController::TabMoved(TabContentsWrapper* contents, |