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

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: Re-upload 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
« no previous file with comments | « ash/launcher/launcher_unittest.cc ('k') | ash/launcher/tabbed_launcher_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_view.cc
diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc
index 303f1ef325ba4db894050ffc18158f288991907b..63f8a2a2b4a19b176526c3ba891e147552488d36 100644
--- a/ash/launcher/launcher_view.cc
+++ b/ash/launcher/launcher_view.cc
@@ -332,7 +332,13 @@ views::View* LauncherView::CreateViewForItem(const LauncherItem& item) {
views::View* view = NULL;
switch (item.type) {
case TYPE_TABBED: {
- TabbedLauncherButton* button = TabbedLauncherButton::Create(this, this);
+ TabbedLauncherButton* button =
+ TabbedLauncherButton::Create(
+ this,
+ this,
+ item.is_incognito ?
+ TabbedLauncherButton::STATE_INCOGNITO :
+ TabbedLauncherButton::STATE_NOT_INCOGNITO);
button->SetTabImage(item.image);
button->set_context_menu_controller(this);
ReflectItemStatus(item, button);
« no previous file with comments | « ash/launcher/launcher_unittest.cc ('k') | ash/launcher/tabbed_launcher_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698