diff options
author | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-12 22:56:38 +0000 |
---|---|---|
committer | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-12 22:56:38 +0000 |
commit | 33c20bb809a26b1b20b4b1bd748d033b4b2c1ddf (patch) | |
tree | 2c71ea9291fbe3c2317b46dab7397dbb08f6e5c2 /ash/launcher/launcher_model.cc | |
parent | 0817545fa66d1ad0233966ce73c7bd4399eb57ae (diff) | |
download | chromium_src-33c20bb809a26b1b20b4b1bd748d033b4b2c1ddf.zip chromium_src-33c20bb809a26b1b20b4b1bd748d033b4b2c1ddf.tar.gz chromium_src-33c20bb809a26b1b20b4b1bd748d033b4b2c1ddf.tar.bz2 |
Show a different icon in the launcher for incognito windows
BUG=116932
TEST=Open an incognito window and a normal window. Check that the icons are different
Review URL: https://chromiumcodereview.appspot.com/9649013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126256 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/launcher/launcher_model.cc')
-rw-r--r-- | ash/launcher/launcher_model.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ash/launcher/launcher_model.cc b/ash/launcher/launcher_model.cc index 33aa5bb..34de1d2 100644 --- a/ash/launcher/launcher_model.cc +++ b/ash/launcher/launcher_model.cc @@ -10,8 +10,16 @@ namespace ash { LauncherModel::LauncherModel() : next_id_(1) { - Add(0, LauncherItem(TYPE_APP_LIST)); - Add(1, LauncherItem(TYPE_BROWSER_SHORTCUT)); + LauncherItem app_list; + app_list.type = TYPE_APP_LIST; + app_list.is_incognito = false; + + LauncherItem browser_shortcut; + browser_shortcut.type = TYPE_BROWSER_SHORTCUT; + browser_shortcut.is_incognito = false; + + Add(0, app_list); + Add(1, browser_shortcut); } LauncherModel::~LauncherModel() { |