| Index: chrome/browser/ui/views/aura/launcher_icon_updater.cc
|
| diff --git a/chrome/browser/ui/views/aura/launcher_icon_updater.cc b/chrome/browser/ui/views/aura/launcher_icon_updater.cc
|
| index f74f8f9f3658533e7fb8e27ad1f7b7360e4cb1ea..3552fd461eac7e284b75b9497e5a07e2f6eedbe3 100644
|
| --- a/chrome/browser/ui/views/aura/launcher_icon_updater.cc
|
| +++ b/chrome/browser/ui/views/aura/launcher_icon_updater.cc
|
| @@ -86,6 +86,19 @@ void LauncherIconUpdater::TabChangedAt(
|
| }
|
| }
|
|
|
| +void LauncherIconUpdater::TabReplacedAt(TabStripModel* tab_strip_model,
|
| + TabContentsWrapper* old_contents,
|
| + TabContentsWrapper* new_contents,
|
| + int index) {
|
| + Tabs::iterator i = std::find(tabs_.begin(), tabs_.end(), old_contents);
|
| + if (i != tabs_.end()) {
|
| + int pos = i - tabs_.begin();
|
| + tabs_[pos] = new_contents;
|
| + if (pos < kMaxCount)
|
| + UpdateLauncher();
|
| + }
|
| +}
|
| +
|
| void LauncherIconUpdater::UpdateLauncher() {
|
| if (tabs_.empty())
|
| return; // Assume the window is going to be closed if there are no tabs.
|
|
|