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

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: update 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..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.
« 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