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

Issue 660813002: [Win] Add a fast profile switcher to the Windows taskbar item. (Closed)

Created:
6 years, 2 months ago by noms (inactive)
Modified:
6 years, 1 month ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[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. Committed: https://crrev.com/f9b8e2af097ad14a094214087eda989bd8fc8f3a Cr-Commit-Position: refs/heads/master@{#304078}

Patch Set 1 : #

Patch Set 2 : fix compile #

Total comments: 18

Patch Set 3 : locking! browser test! nits! #

Total comments: 10

Patch Set 4 : only display switcher for >1 profiles #

Patch Set 5 : metrics! finches! #

Patch Set 6 : fix compile #

Total comments: 18

Patch Set 7 : sky + tapted review comments #

Total comments: 2

Patch Set 8 : rebase + added renamed jumplist files #

Total comments: 14

Patch Set 9 : moar review comments! #

Patch Set 10 : ifdef code correctly #

Total comments: 2

Patch Set 11 : sort list #

Patch Set 12 : commas. commas are important #

Unified diffs Side-by-side diffs Delta from patch set Stats (+370 lines, -140 lines) Patch
D chrome/browser/chromeos/profiles/avatar_menu_chromeos.cc View 1 chunk +0 lines, -20 lines 0 comments Download
M chrome/browser/jumplist_win.h View 1 2 3 4 5 6 5 chunks +28 lines, -6 lines 0 comments Download
M chrome/browser/jumplist_win.cc View 1 2 3 4 5 6 7 8 18 chunks +132 lines, -27 lines 0 comments Download
A chrome/browser/metrics/jumplist_metrics_win.h View 1 2 3 4 5 6 7 8 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/metrics/jumplist_metrics_win.cc View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/browser/profiles/avatar_menu.h View 1 chunk +0 lines, -6 lines 0 comments Download
D chrome/browser/profiles/avatar_menu_desktop.cc View 1 chunk +0 lines, -42 lines 0 comments Download
M chrome/browser/profiles/profile_avatar_icon_util.h View 1 2 2 chunks +36 lines, -29 lines 0 comments Download
M chrome/browser/profiles/profile_avatar_icon_util.cc View 3 chunks +33 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 4 5 6 7 8 9 2 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_browsertest.cc View 1 2 3 4 9 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_menu_button.cc View 1 2 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/common/switch_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (9 generated)
noms (inactive)
Hiya Trent! Here is the CL that we talked about, that adds a list of ...
6 years, 1 month ago (2014-11-03 20:08:13 UTC) #4
tapted
main comment below about thread safety. I think it would be nice (and keep owners ...
6 years, 1 month ago (2014-11-03 23:57:06 UTC) #5
tapted
On 2014/11/03 23:57:06, tapted wrote: > I guess the jumplist is currently a source of ...
6 years, 1 month ago (2014-11-03 23:58:29 UTC) #6
noms (inactive)
Woohoo! Thank you so much! I think things make more sense now. I've added a ...
6 years, 1 month ago (2014-11-04 20:03:09 UTC) #7
tapted
looking good! I think it's ready for some OWNERS. If you think so too, I'd ...
6 years, 1 month ago (2014-11-04 23:10:48 UTC) #8
noms (inactive)
https://codereview.chromium.org/660813002/diff/80001/chrome/browser/jumplist_win.cc File chrome/browser/jumplist_win.cc (right): https://codereview.chromium.org/660813002/diff/80001/chrome/browser/jumplist_win.cc#newcode154 chrome/browser/jumplist_win.cc:154: MulDiv(jumplist_updater.user_max_items(), kMostVisited, kTotal); On 2014/11/04 23:10:48, tapted wrote: > ...
6 years, 1 month ago (2014-11-10 21:46:08 UTC) #10
noms (inactive)
Hiya, We'd like to run a Finch experiment to see whether a) anyone uses the ...
6 years, 1 month ago (2014-11-10 22:05:13 UTC) #12
sky
https://codereview.chromium.org/660813002/diff/160001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/660813002/diff/160001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode753 chrome/browser/ui/startup/startup_browser_creator.cc:753: if (command_line.HasSwitch(switches::kActivateExistingProfileBrowser)) { How do you know there isn't ...
6 years, 1 month ago (2014-11-10 23:28:25 UTC) #13
tapted
https://codereview.chromium.org/660813002/diff/160001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/660813002/diff/160001/chrome/browser/chrome_browser_main.cc#newcode463 chrome/browser/chrome_browser_main.cc:463: command_line.GetSwitchValueASCII(switches::kWinJumplistAction)); If you want to catch metrics recording for ...
6 years, 1 month ago (2014-11-10 23:47:42 UTC) #14
noms (inactive)
https://codereview.chromium.org/660813002/diff/160001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/660813002/diff/160001/chrome/browser/chrome_browser_main.cc#newcode463 chrome/browser/chrome_browser_main.cc:463: command_line.GetSwitchValueASCII(switches::kWinJumplistAction)); On 2014/11/10 23:47:41, tapted wrote: > If you ...
6 years, 1 month ago (2014-11-12 19:04:11 UTC) #15
cpu_(ooo_6.6-7.5)
some questions. This is a finch experiment, so how do we measure success? The users ...
6 years, 1 month ago (2014-11-12 20:56:28 UTC) #16
cpu_(ooo_6.6-7.5)
and a request. can you add a screenshot in the bug please?
6 years, 1 month ago (2014-11-12 20:57:41 UTC) #17
noms (inactive)
On 2014/11/12 20:57:41, cpu wrote: > and a request. can you add a screenshot in ...
6 years, 1 month ago (2014-11-12 20:58:21 UTC) #18
noms (inactive)
> This is a finch experiment, so how do we measure success? The > users ...
6 years, 1 month ago (2014-11-12 21:45:24 UTC) #19
jwd
https://codereview.chromium.org/660813002/diff/200001/chrome/browser/metrics/jumplist_metrics_win.h File chrome/browser/metrics/jumplist_metrics_win.h (right): https://codereview.chromium.org/660813002/diff/200001/chrome/browser/metrics/jumplist_metrics_win.h#newcode12 chrome/browser/metrics/jumplist_metrics_win.h:12: // Enum for counting which category was clicked. Add ...
6 years, 1 month ago (2014-11-12 21:55:42 UTC) #20
cpu_(ooo_6.6-7.5)
jumplist code lgtm https://codereview.chromium.org/660813002/diff/200001/chrome/browser/jumplist_win.cc File chrome/browser/jumplist_win.cc (right): https://codereview.chromium.org/660813002/diff/200001/chrome/browser/jumplist_win.cc#newcode266 chrome/browser/jumplist_win.cc:266: DCHECK(profile_manager); move this to CHECK() or ...
6 years, 1 month ago (2014-11-12 23:04:58 UTC) #21
tapted
general review lgtm . As discussed, I'm pretty sure the code in browser_frame_ashwin.cc has you ...
6 years, 1 month ago (2014-11-12 23:32:49 UTC) #22
sky
https://codereview.chromium.org/660813002/diff/200001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/660813002/diff/200001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode639 chrome/browser/ui/startup/startup_browser_creator.cc:639: command_line.GetSwitchValueASCII(switches::kWinJumplistAction)); Should the command line switch get removed so ...
6 years, 1 month ago (2014-11-13 00:17:11 UTC) #23
xiyuan
c/b/chromeos/* LGTM
6 years, 1 month ago (2014-11-13 00:37:03 UTC) #24
Roger Tawa OOO till Jul 10th
lgtm profile_management_switches.h|cc https://codereview.chromium.org/660813002/diff/200001/components/signin/core/common/profile_management_switches.cc File components/signin/core/common/profile_management_switches.cc (right): https://codereview.chromium.org/660813002/diff/200001/components/signin/core/common/profile_management_switches.cc#newcode198 components/signin/core/common/profile_management_switches.cc:198: return group_name == "Use-Profiles"; Maybe remove '-' ...
6 years, 1 month ago (2014-11-13 14:54:19 UTC) #25
Roger Tawa OOO till Jul 10th
lgtm for avatar_menu refactor
6 years, 1 month ago (2014-11-13 15:02:58 UTC) #26
noms (inactive)
https://codereview.chromium.org/660813002/diff/180001/chrome/browser/jumplist_win.cc File chrome/browser/jumplist_win.cc (right): https://codereview.chromium.org/660813002/diff/180001/chrome/browser/jumplist_win.cc#newcode226 chrome/browser/jumplist_win.cc:226: weak_ptr_factory_(this) { On 2014/11/12 23:32:49, tapted wrote: > nit: ...
6 years, 1 month ago (2014-11-13 16:59:55 UTC) #27
sky
LGTM https://codereview.chromium.org/660813002/diff/240001/chrome/common/switch_utils.cc File chrome/common/switch_utils.cc (right): https://codereview.chromium.org/660813002/diff/240001/chrome/common/switch_utils.cc#newcode24 chrome/common/switch_utils.cc:24: switches::kWinJumplistAction, nit: sort this list.
6 years, 1 month ago (2014-11-13 17:17:18 UTC) #28
noms (inactive)
Yay! Thanks Scott! https://codereview.chromium.org/660813002/diff/240001/chrome/common/switch_utils.cc File chrome/common/switch_utils.cc (right): https://codereview.chromium.org/660813002/diff/240001/chrome/common/switch_utils.cc#newcode24 chrome/common/switch_utils.cc:24: switches::kWinJumplistAction, On 2014/11/13 17:17:18, sky wrote: ...
6 years, 1 month ago (2014-11-13 17:46:38 UTC) #30
jwd
lgtm
6 years, 1 month ago (2014-11-13 18:31:53 UTC) #31
noms (inactive)
Yay, thanks everyone for playing "Chromium's worst CL"! Sending this to the CQ :)
6 years, 1 month ago (2014-11-13 19:25:28 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/660813002/260001
6 years, 1 month ago (2014-11-13 19:27:13 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/91465) android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/28068) linux_chromium_gn_rel ...
6 years, 1 month ago (2014-11-13 19:39:30 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/660813002/300001
6 years, 1 month ago (2014-11-13 19:58:28 UTC) #38
commit-bot: I haz the power
Committed patchset #12 (id:300001)
6 years, 1 month ago (2014-11-13 20:58:04 UTC) #39
commit-bot: I haz the power
6 years, 1 month ago (2014-11-13 20:58:46 UTC) #40
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/f9b8e2af097ad14a094214087eda989bd8fc8f3a
Cr-Commit-Position: refs/heads/master@{#304078}

Powered by Google App Engine
This is Rietveld 408576698