[Win] Add a fast profile switcher to the Windows taskbar item.
commitf9b8e2af097ad14a094214087eda989bd8fc8f3a
authornoms <noms@chromium.org>
Thu, 13 Nov 2014 20:57:50 +0000 (13 12:57 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 13 Nov 2014 20:58:17 +0000 (13 20:58 +0000)
tree7921e064757924ede57a8a124d66347668895d3b
parentef4218d96a2716bd8149ae7af3946d88a64e41e6
[Win] Add a fast profile switcher to the Windows taskbar item.

Mac and Linux now have a fast profile switcher in the OS menu bar, so for the
sake of feature parity, the Windows taskbar should have one as well. Since we
can only have 10 items in total in the Jumplist, we are going to run an
experiment and see if the hypothesis that nobody uses the Most Visited items
in the Jumplist is true (and that we can replace them with a list of Profiles)

I've also added a new histogram, WinJumplist.Action to track what got clicked in
the Jumplisy. Because the Jumplist is just a list of shortcuts, this means adding
a command line switch, that gets checked when the chrome process starts up.

Also includes a small refactor of AvatarMenu::GetImageForMenuButton so that it
can be used without a Profile* (also, it was completely unused on CrOS)

Screenshot: https://drive.google.com/folderview?id=0B1B1Up4p2NRMNzVLMVpfSkJTbmc&usp=sharing

BUG=421490
TEST=Start Chrome. Right click on the Windows taskbar item. A list of profiles
should appear above the Tasks list. Clicking on a profile name should either
open a new browser window for the profile, or activate an existing one.

Review URL: https://codereview.chromium.org/660813002

Cr-Commit-Position: refs/heads/master@{#304078}
18 files changed:
chrome/browser/chromeos/profiles/avatar_menu_chromeos.cc [deleted file]
chrome/browser/jumplist_win.cc
chrome/browser/jumplist_win.h
chrome/browser/metrics/jumplist_metrics_win.cc [new file with mode: 0644]
chrome/browser/metrics/jumplist_metrics_win.h [new file with mode: 0644]
chrome/browser/profiles/avatar_menu.h
chrome/browser/profiles/avatar_menu_desktop.cc [deleted file]
chrome/browser/profiles/profile_avatar_icon_util.cc
chrome/browser/profiles/profile_avatar_icon_util.h
chrome/browser/ui/startup/startup_browser_creator.cc
chrome/browser/ui/startup/startup_browser_creator_browsertest.cc
chrome/browser/ui/views/profiles/avatar_menu_button.cc
chrome/chrome_browser.gypi
chrome/chrome_browser_chromeos.gypi
chrome/common/chrome_switches.cc
chrome/common/chrome_switches.h
chrome/common/switch_utils.cc
tools/metrics/histograms/histograms.xml