DescriptionKeep installing all-users Start Menu and Desktop shortcuts on system-level installs.
Also, pin the system-level shortcut if pinning was requested when creating the user-level shortcut, but it isn't created because its system-level match is present.
BUG=164655
TEST=
Below "all shortcuts" refers to: Desktop, Quick Launch, Start Menu (Start Screen on Win8), and taskbar shortcuts.
Have 5 users (setup this way BEFORE installing system-level Chrome -- might be worth to save a VM with this state before installing system-level Chrome...):
User A => M23 user-level Chrome installed (he will also be the user installing system-level Chrome)
User B => M23 user-level Chrome installed, but logged out.
User C => M23 user-level Chrome installed, but stays logged in.
User D => No user-level install.
User E => No user-level install.
From user A, install a system-level Chrome including this CL.
User A should have both types of shortcuts (per-user + all-users); invoking any of the per-user shortcuts should self-destruct the user-level Chrome (deleting its shortcuts in the process).
Login to User B:
He should also have both types shortcuts and self-destruct should happen when invoking user-level Chrome.
Go to user C (should have been logged in and stayed logged in since the system-level install):
User C will have both types of shortcuts (he will however be missing the system-level taskbar pin; and that until either next login or system-level first run). Self-destruct should happen the same way.
Login to user D:
He should have all system-level shortcuts.
**Delete the all-users Desktop shortcut.**
Login to user E:
He should have all system-level shortcuts (the Desktop shortcut will be a per-user shortcut pointing to system-level Chrome) :)! This is a nice side-effect of the previous work I did (will not work for users who later go through self-destruct or who have already ran system-level Chrome, but still a nice side-effect feature!).
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172223
Patch Set 1 #
Total comments: 4
Patch Set 2 : remove TODO #
Messages
Total messages: 6 (0 generated)
|