Chromium Code Reviews| Index: chrome/browser/tabs/tab_strip_selection_model.cc |
| diff --git a/chrome/browser/tabs/tab_strip_selection_model.cc b/chrome/browser/tabs/tab_strip_selection_model.cc |
| index 1164b28f7cb006a32e609df8ac394f84a3f3e687..72b7d4da45f5546f66cf33954af2717ff3c792a9 100644 |
| --- a/chrome/browser/tabs/tab_strip_selection_model.cc |
| +++ b/chrome/browser/tabs/tab_strip_selection_model.cc |
| @@ -59,7 +59,8 @@ void TabStripSelectionModel::DecrementFrom(int index) { |
| void TabStripSelectionModel::SetSelectedIndex(int index) { |
| anchor_ = active_ = index; |
| - SetSelectionFromAnchorTo(index); |
| + selected_indices_.clear(); |
| + selected_indices_.push_back(index); |
|
sky
2011/06/08 20:38:49
Only push_back if index != kUnselectedIndex.
dpapad
2011/06/08 21:19:34
Done.
|
| } |
| bool TabStripSelectionModel::IsSelected(int index) const { |