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

Unified Diff: ash/launcher/launcher_view.cc

Issue 9649013: Show a different icon in the launcher for incognito windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Code review fix Created 8 years, 9 months 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
Index: ash/launcher/launcher_view.cc
diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc
index 0434a947dc0b2e3463ba79e5d3607176d53b20a5..56646d9dacc989548675e4e5f929190209aeb0c0 100644
--- a/ash/launcher/launcher_view.cc
+++ b/ash/launcher/launcher_view.cc
@@ -303,7 +303,7 @@ views::View* LauncherView::CreateViewForItem(const LauncherItem& item) {
switch (item.type) {
case TYPE_TABBED: {
TabbedLauncherButton* button = new TabbedLauncherButton(this, this);
- button->SetTabImage(item.image, item.num_tabs);
+ button->SetTabImage(item);
button->set_context_menu_controller(this);
view = button;
break;
@@ -551,7 +551,7 @@ void LauncherView::LauncherItemChanged(int model_index,
case TYPE_TABBED: {
TabbedLauncherButton* button = static_cast<TabbedLauncherButton*>(view);
gfx::Size pref = button->GetPreferredSize();
- button->SetTabImage(item.image, item.num_tabs);
+ button->SetTabImage(item);
if (pref != button->GetPreferredSize())
AnimateToIdealBounds();
else

Powered by Google App Engine
This is Rietveld 408576698