Chromium Code Reviews| 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..58c84728f361e49ec53036dbf5159b921683b2c4 100644 |
| --- a/chrome/browser/ui/views/aura/launcher_icon_updater.cc |
| +++ b/chrome/browser/ui/views/aura/launcher_icon_updater.cc |
| @@ -86,6 +86,17 @@ 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()) { |
| + tabs_.erase(i); |
|
sky
2011/11/17 05:04:23
This should replace the value at i with new_conten
alicet1
2011/11/17 05:33:39
Done.
|
| + tabs_.push_back(new_contents); |
| + } |
| +} |
| + |
| void LauncherIconUpdater::UpdateLauncher() { |
| if (tabs_.empty()) |
| return; // Assume the window is going to be closed if there are no tabs. |