Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: chrome/browser/tabs/tab_strip_selection_model.cc

Issue 7140001: Multi-tab: Fixing TabStripSelectionModel::SetSelectedIndex corner case. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698