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/ui/views/aura/launcher_icon_updater.cc

Issue 8588020: fix NetInternalsTest.NetInternalsPrerenderViewSucceed for aura (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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 | « chrome/browser/ui/views/aura/launcher_icon_updater.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « chrome/browser/ui/views/aura/launcher_icon_updater.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698