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

Issue 432273005: Fix shortcut tests and remove legacy shortcut code. (Closed)

Created:
6 years, 4 months ago by gab
Modified:
6 years, 4 months ago
CC:
chromium-reviews, grt+watch_chromium.org, erikwright+watch_chromium.org, wfh+watch_chromium.org, robertshield
Project:
chromium
Visibility:
Public.

Description

Fix shortcut tests and remove legacy shortcut code for the Default-user Quick Launch shortcut. InstallShortcutTest.CreateAllShortcutsSystemLevel has been broken since http://crrev.com/164849 ... The test expectations had not been adjusted in this CL as setup_unittests.exe doesn't run on the waterfall yet (issue #153829) and the breakage had gone unnoticed. Expectations have now been adjusted such that we no longer expect a system-level (Default-user) Quick Launch shortcut, but a per-user Quick Launch shortcut for the admin running the install as the product code's logic has been doing for over a year... Also remove the code cleaning up the legacy Default-user Quick Launch shortcut as this cleanup code has been running for 21 months now and leaving this shortcut behind for a few users is a no-op (i.e. the Default-user shortcut will get copied to new Windows profiles and Active Setup will kick in a few seconds later to try to install the same shortcut which will already exist... the UX result will be the same: a single Chrome Quick Launch shortcut will be installed). BUG=329239, 153829 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288393

Patch Set 1 #

Total comments: 8

Patch Set 2 : rm comment #

Patch Set 3 : only remove Default-user Quick Launch shortcut #

Patch Set 4 : add test that system-level installs drop a per-user shortcut for the admin running the install #

Patch Set 5 : Don't check system-level Quick Launch folder on uninstall. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -100 lines) Patch
M base/base_paths_win.h View 1 chunk +0 lines, -2 lines 0 comments Download
M base/base_paths_win.cc View 1 2 chunks +11 lines, -38 lines 0 comments Download
M base/path_service_unittest.cc View 2 chunks +1 line, -15 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 2 chunks +2 lines, -11 lines 0 comments Download
M chrome/installer/setup/install_unittest.cc View 1 2 3 8 chunks +8 lines, -17 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 4 chunks +16 lines, -3 lines 0 comments Download
M chrome/installer/util/shell_util_unittest.cc View 8 chunks +10 lines, -14 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
gab
Sir, fixed some tests, cleaned up some code, more to come :-)! Cheers! Gab
6 years, 4 months ago (2014-08-01 19:53:16 UTC) #1
grt (UTC plus 2)
https://codereview.chromium.org/432273005/diff/1/base/base_paths_win.cc File base/base_paths_win.cc (right): https://codereview.chromium.org/432273005/diff/1/base/base_paths_win.cc#newcode150 base/base_paths_win.cc:150: // For the current user, grab the APPDATA directory ...
6 years, 4 months ago (2014-08-04 18:27:08 UTC) #2
gab
https://codereview.chromium.org/432273005/diff/1/base/base_paths_win.cc File base/base_paths_win.cc (right): https://codereview.chromium.org/432273005/diff/1/base/base_paths_win.cc#newcode150 base/base_paths_win.cc:150: // For the current user, grab the APPDATA directory ...
6 years, 4 months ago (2014-08-04 18:57:08 UTC) #3
grt (UTC plus 2)
https://codereview.chromium.org/432273005/diff/1/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (left): https://codereview.chromium.org/432273005/diff/1/chrome/installer/setup/install.cc#oldcode252 chrome/installer/setup/install.cc:252: void CleanupLegacyShortcuts(const installer::InstallerState& installer_state, On 2014/08/04 18:57:08, gab wrote: ...
6 years, 4 months ago (2014-08-04 19:05:52 UTC) #4
gab
https://codereview.chromium.org/432273005/diff/1/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (left): https://codereview.chromium.org/432273005/diff/1/chrome/installer/setup/install.cc#oldcode252 chrome/installer/setup/install.cc:252: void CleanupLegacyShortcuts(const installer::InstallerState& installer_state, On 2014/08/04 19:05:51, grt (no ...
6 years, 4 months ago (2014-08-04 20:22:51 UTC) #5
gab
Re-added some code to focus this CL on fixing the test and removing the deprecated ...
6 years, 4 months ago (2014-08-05 20:35:18 UTC) #6
gab
Mark, PTAL at code cleanup in base :-)!
6 years, 4 months ago (2014-08-05 20:43:27 UTC) #7
Mark Mentovai
Please choose another base OWNER for this, I’m doing two code yellow/brown/aquas right now.
6 years, 4 months ago (2014-08-05 20:58:24 UTC) #8
gab
On 2014/08/05 20:58:24, Mark Mentovai wrote: > Please choose another base OWNER for this, I’m ...
6 years, 4 months ago (2014-08-05 21:52:24 UTC) #9
willchan no longer on Chromium
Shit, I guess I lose since I'm only involved in one code yellow. Dammit Mark! ...
6 years, 4 months ago (2014-08-05 21:54:29 UTC) #10
willchan no longer on Chromium
I looked through the bugs and changelist description but found no explanation of what was ...
6 years, 4 months ago (2014-08-05 22:51:47 UTC) #11
gab
On 2014/08/05 22:51:47, willchan wrote: > I looked through the bugs and changelist description but ...
6 years, 4 months ago (2014-08-06 14:09:02 UTC) #12
grt (UTC plus 2)
lgtm. thanks for the cleanup. is there any documentation (chromium.org?) that should be updated as ...
6 years, 4 months ago (2014-08-06 14:44:38 UTC) #13
grt (UTC plus 2)
OMG! test_installer caught a regression! [0806/083701:ERROR:shell_util.cc(1361)] Cannot resolve shortcut at C:\Users\chrome-bot\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar\Windows Media ...
6 years, 4 months ago (2014-08-06 15:49:57 UTC) #14
willchan no longer on Chromium
Thanks, LGTM mod whatever test failure grt@ is referencing :) I don't know what's going ...
6 years, 4 months ago (2014-08-06 20:41:54 UTC) #15
gab
On 2014/08/06 14:44:38, grt (no reviews Aug 9 - 27) wrote: > lgtm. thanks for ...
6 years, 4 months ago (2014-08-07 12:37:29 UTC) #16
gab
Fixed installer regression (glad the installer tests were in in time!). PTAL. (we should probably ...
6 years, 4 months ago (2014-08-07 13:02:26 UTC) #17
grt (UTC plus 2)
On 2014/08/07 13:02:26, gab wrote: > Fixed installer regression (glad the installer tests were in ...
6 years, 4 months ago (2014-08-08 13:46:48 UTC) #18
gab
The CQ bit was checked by gab@chromium.org
6 years, 4 months ago (2014-08-08 14:02:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/432273005/80001
6 years, 4 months ago (2014-08-08 14:04:37 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-08 15:29:09 UTC) #21
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 18:17:59 UTC) #22
Message was sent while issue was closed.
Change committed as 288393

Powered by Google App Engine
This is Rietveld 408576698