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

Issue 11465025: Keep installing all-users Start Menu and Desktop shortcuts on system-level installs. (Closed)

Created:
8 years ago by gab
Modified:
8 years ago
Reviewers:
robertshield
CC:
chromium-reviews, grt+watch_chromium.org
Visibility:
Public.

Description

Keep 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -33 lines) Patch
M chrome/installer/setup/install.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 6 chunks +19 lines, -12 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 2 chunks +25 lines, -18 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
gab
Sir, PTAL. Cheers, Gab
8 years ago (2012-12-07 19:29:18 UTC) #1
robertshield
lg, couple of nits https://codereview.chromium.org/11465025/diff/1/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): https://codereview.chromium.org/11465025/diff/1/chrome/installer/setup/install.cc#newcode377 chrome/installer/setup/install.cc:377: // TODO(tommi): Change this function ...
8 years ago (2012-12-10 20:58:28 UTC) #2
gab
Removed TODO, PTAL. https://codereview.chromium.org/11465025/diff/1/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): https://codereview.chromium.org/11465025/diff/1/chrome/installer/setup/install.cc#newcode377 chrome/installer/setup/install.cc:377: // TODO(tommi): Change this function to ...
8 years ago (2012-12-10 21:50:32 UTC) #3
robertshield
lgtm
8 years ago (2012-12-10 22:16:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/11465025/8001
8 years ago (2012-12-10 22:16:33 UTC) #5
commit-bot: I haz the power
8 years ago (2012-12-11 01:53:52 UTC) #6
Message was sent while issue was closed.
Change committed as 172223

Powered by Google App Engine
This is Rietveld 408576698