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

Issue 1800303006: Fix the path of shortcuts with an icon in the current install dir. (Closed)

Created:
4 years, 9 months ago by fdoray
Modified:
4 years, 9 months ago
Reviewers:
gab, Nico, grt (UTC plus 2)
CC:
chromium-reviews, grt+watch_chromium.org, wfh+watch_chromium.org, grt (UTC plus 2)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix the path of shortcuts with an icon in the current install dir. BUG=595374 Committed: https://crrev.com/04228a0b711fde48b78491825b13268b851b303b Cr-Commit-Position: refs/heads/master@{#382318}

Patch Set 1 #

Total comments: 6

Patch Set 2 : CR gab #3 #

Patch Set 3 : self review #

Patch Set 4 : self review #

Patch Set 5 : self review #

Total comments: 14

Patch Set 6 : CR gab #5 #

Patch Set 7 : fix buildbot error #

Patch Set 8 : fix buildbot error #

Patch Set 9 : fix buildbot error #

Patch Set 10 : fix buildbot error #

Total comments: 1

Patch Set 11 : fix buildbot error #

Patch Set 12 : Use ProgramCompare #

Patch Set 13 : fix nit #

Total comments: 1

Patch Set 14 : fix buildbot error #

Total comments: 4

Patch Set 15 : Canary only #

Patch Set 16 : add tests #

Total comments: 2

Patch Set 17 : fix buildbot error #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+455 lines, -151 lines) Patch
M chrome/installer/setup/install.h View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/installer/setup/install.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +60 lines, -11 lines 1 comment Download
M chrome/installer/setup/install_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +321 lines, -128 lines 0 comments Download
M chrome/installer/util/install_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +17 lines, -1 line 1 comment Download
M chrome/installer/util/install_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +14 lines, -7 lines 0 comments Download
M chrome/installer/util/install_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +38 lines, -0 lines 2 comments Download

Messages

Total messages: 51 (22 generated)
fdoray
gab@: Can you review this CL? Thanks.
4 years, 9 months ago (2016-03-17 16:41:34 UTC) #2
gab
lg, comments below. We should make sure we get coverage for multiple installs (Canary + ...
4 years, 9 months ago (2016-03-17 20:14:24 UTC) #3
fdoray
gab@: Can you take another look? Thanks. https://codereview.chromium.org/1800303006/diff/1/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): https://codereview.chromium.org/1800303006/diff/1/chrome/installer/setup/install.cc#newcode302 chrome/installer/setup/install.cc:302: !old_target_dir.IsParent(shortcut_properties.icon)) { ...
4 years, 9 months ago (2016-03-18 14:08:59 UTC) #4
gab
This is great :-), lgtm % a few test nits https://codereview.chromium.org/1800303006/diff/80001/chrome/installer/setup/install_unittest.cc File chrome/installer/setup/install_unittest.cc (right): https://codereview.chromium.org/1800303006/diff/80001/chrome/installer/setup/install_unittest.cc#newcode82 ...
4 years, 9 months ago (2016-03-18 16:21:25 UTC) #5
fdoray
https://codereview.chromium.org/1800303006/diff/80001/chrome/installer/setup/install_unittest.cc File chrome/installer/setup/install_unittest.cc (right): https://codereview.chromium.org/1800303006/diff/80001/chrome/installer/setup/install_unittest.cc#newcode82 chrome/installer/setup/install_unittest.cc:82: const base::FilePath::CharType* icon_path; On 2016/03/18 16:21:24, gab wrote: > ...
4 years, 9 months ago (2016-03-18 17:01:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1800303006/20002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1800303006/20002
4 years, 9 months ago (2016-03-18 17:01:32 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/191271)
4 years, 9 months ago (2016-03-18 17:54:58 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1800303006/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1800303006/130001
4 years, 9 months ago (2016-03-18 18:06:48 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/191331)
4 years, 9 months ago (2016-03-18 19:03:40 UTC) #15
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1800303006/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1800303006/170001
4 years, 9 months ago (2016-03-18 19:26:55 UTC) #17
gab
Would have preferred something like base::NormalizeFilePath(), to ::GetFullPathName(), but the former doesn't work on directories ...
4 years, 9 months ago (2016-03-18 20:07:11 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/184722)
4 years, 9 months ago (2016-03-18 20:10:28 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1800303006/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1800303006/190001
4 years, 9 months ago (2016-03-18 22:39:36 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-18 23:28:08 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1800303006/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1800303006/210001
4 years, 9 months ago (2016-03-21 13:55:05 UTC) #27
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1800303006/230001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1800303006/230001
4 years, 9 months ago (2016-03-21 13:57:20 UTC) #30
Nico
I think this (failing) try job belongs to this patch: https://build.chromium.org/p/tryserver.chromium.win/builders/win_clang_x64_dbg/builds/285 Not sure why this ...
4 years, 9 months ago (2016-03-21 14:46:25 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1800303006/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1800303006/250001
4 years, 9 months ago (2016-03-21 15:05:01 UTC) #34
gab
https://codereview.chromium.org/1800303006/diff/230001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): https://codereview.chromium.org/1800303006/diff/230001/chrome/installer/setup/install.cc#newcode327 chrome/installer/setup/install.cc:327: shortcut_properties.target, num_old_target_dir_components)) && Truncating to specific number of components ...
4 years, 9 months ago (2016-03-21 15:06:59 UTC) #35
Nico
On 2016/03/21 14:46:25, Nico wrote: > I think this (failing) try job belongs to this ...
4 years, 9 months ago (2016-03-21 15:17:02 UTC) #36
gab
Two more comments on ongoing patch sets. https://codereview.chromium.org/1800303006/diff/250001/chrome/installer/util/install_util.h File chrome/installer/util/install_util.h (right): https://codereview.chromium.org/1800303006/diff/250001/chrome/installer/util/install_util.h#newcode193 chrome/installer/util/install_util.h:193: ProgramCompare(const base::FilePath& ...
4 years, 9 months ago (2016-03-21 15:27:04 UTC) #37
fdoray
https://codereview.chromium.org/1800303006/diff/250001/chrome/installer/util/install_util.h File chrome/installer/util/install_util.h (right): https://codereview.chromium.org/1800303006/diff/250001/chrome/installer/util/install_util.h#newcode193 chrome/installer/util/install_util.h:193: ProgramCompare(const base::FilePath& path_to_match, On 2016/03/21 15:27:04, gab wrote: > ...
4 years, 9 months ago (2016-03-21 15:44:29 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1800303006/290001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1800303006/290001
4 years, 9 months ago (2016-03-21 15:44:49 UTC) #41
Nico
Another try failure: https://build.chromium.org/p/tryserver.chromium.win/builders/win_clang_x64_dbg/builds/305/steps/compile%20%28with%20patch%29/logs/stdio https://codereview.chromium.org/1800303006/diff/290001/chrome/installer/util/install_util_unittest.cc File chrome/installer/util/install_util_unittest.cc (right): https://codereview.chromium.org/1800303006/diff/290001/chrome/installer/util/install_util_unittest.cc#newcode465 chrome/installer/util/install_util_unittest.cc:465: static const char data[] = ...
4 years, 9 months ago (2016-03-21 16:22:22 UTC) #42
fdoray
https://codereview.chromium.org/1800303006/diff/290001/chrome/installer/util/install_util_unittest.cc File chrome/installer/util/install_util_unittest.cc (right): https://codereview.chromium.org/1800303006/diff/290001/chrome/installer/util/install_util_unittest.cc#newcode465 chrome/installer/util/install_util_unittest.cc:465: static const char data[] = "data"; On 2016/03/21 16:22:22, ...
4 years, 9 months ago (2016-03-21 16:39:03 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1800303006/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1800303006/310001
4 years, 9 months ago (2016-03-21 16:39:22 UTC) #47
commit-bot: I haz the power
Committed patchset #17 (id:310001)
4 years, 9 months ago (2016-03-21 17:34:57 UTC) #48
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/04228a0b711fde48b78491825b13268b851b303b Cr-Commit-Position: refs/heads/master@{#382318}
4 years, 9 months ago (2016-03-21 17:36:58 UTC) #50
gab
4 years, 9 months ago (2016-03-21 19:28:14 UTC) #51
Message was sent while issue was closed.
Post-commit comments (a follow-up CL is fine)

https://codereview.chromium.org/1800303006/diff/310001/chrome/installer/setup...
File chrome/installer/setup/install.cc (right):

https://codereview.chromium.org/1800303006/diff/310001/chrome/installer/setup...
chrome/installer/setup/install.cc:323: continue;
Nice :-), I'd even add a NOTREACHED(); with a comment:

// ResolveShortcutProperties isn't expected to return paths with relative
components, but if it does, the algorithm below is invalid.

https://codereview.chromium.org/1800303006/diff/310001/chrome/installer/util/...
File chrome/installer/util/install_util.h (right):

https://codereview.chromium.org/1800303006/diff/310001/chrome/installer/util/...
chrome/installer/util/install_util.h:189: // the same file.
This class' functionality is no longer specific to a "program" I guess...
Changing the class' name would probably be a pain, but this header should at
least be updated.

https://codereview.chromium.org/1800303006/diff/310001/chrome/installer/util/...
File chrome/installer/util/install_util_unittest.cc (right):

https://codereview.chromium.org/1800303006/diff/310001/chrome/installer/util/...
chrome/installer/util/install_util_unittest.cc:456: TEST_F(InstallUtilTest,
ProgramCompareWithDirectories) {
Should also verify that all other file tests pass just as well when
ComparisonType is FILE_OR_DIRECTORY.

https://codereview.chromium.org/1800303006/diff/310001/chrome/installer/util/...
chrome/installer/util/install_util_unittest.cc:480: std::wstring short_expect;
base::string16

Powered by Google App Engine
This is Rietveld 408576698