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

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: 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..93654c52da2ff1cc1447e57c6d842c85896ed5e8 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.image, item.num_tabs, item.private_tab);
oshima 2012/03/09 17:54:02 maybe pass LauncherItem? It doesn't sound odd for
Zachary Kuznia 2012/03/09 22:17:35 Done.
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.image, item.num_tabs, item.private_tab);
if (pref != button->GetPreferredSize())
AnimateToIdealBounds();
else

Powered by Google App Engine
This is Rietveld 408576698