Index: chrome/browser/tabs/tab_strip_model.cc |
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc |
index 896f0308410072d84dec9b7c6cc8cfed44dd33a9..a7ff8f66b2ca7f333f86630999b256adf6a61381 100644 |
--- a/chrome/browser/tabs/tab_strip_model.cc |
+++ b/chrome/browser/tabs/tab_strip_model.cc |
@@ -183,8 +183,7 @@ TabContentsWrapper* TabStripModel::ReplaceTabContentsAt( |
// selected contents as selection changing. |
if (selected_index_ == index) { |
FOR_EACH_OBSERVER(TabStripModelObserver, observers_, |
- TabSelectedAt(old_contents, new_contents, |
- selected_index_, false)); |
+ TabSelectionChanged(this, old_contents, false)); |
} |
return old_contents; |
} |
@@ -963,16 +962,10 @@ void TabStripModel::ChangeSelectedContentsFrom( |
} |
selected_index_ = to_index; |
- ObserverListBase<TabStripModelObserver>::Iterator it(observers_); |
- TabStripModelObserver* obs; |
- while ((obs = it.GetNext()) != NULL) |
- obs->TabSelectedAt(last_selected_contents, new_contents, |
- selected_index_, user_gesture); |
- /* |
- FOR_EACH_OBSERVER(TabStripModelObserver, observers_, |
- TabSelectedAt(last_selected_contents, new_contents, selected_index_, |
- user_gesture)); |
- */ |
+ |
+ FOR_EACH_OBSERVER( |
+ TabStripModelObserver, observers_, |
+ TabSelectionChanged(this, last_selected_contents, user_gesture)); |
} |
void TabStripModel::SelectRelativeTab(bool next) { |