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

Issue 2086103002: Add base::ExecutableExistsInPath (Closed)

Created:
4 years, 6 months ago by Tom (Use chromium acct)
Modified:
4 years, 6 months ago
Reviewers:
Lei Zhang, mattm
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add base::ExecutableExistsInPath BUG=622021 Committed: https://crrev.com/1929bb230afca9fd8958133bbbe948edbd28aa05 Cr-Commit-Position: refs/heads/master@{#401783}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 5

Patch Set 3 : Add unit test #

Total comments: 2

Patch Set 4 : Rewrite unit test #

Total comments: 11

Patch Set 5 : Don't leak base::Environment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -60 lines) Patch
M base/files/file_util.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M base/files/file_util_posix.cc View 1 2 3 3 chunks +21 lines, -0 lines 0 comments Download
M base/files/file_util_unittest.cc View 1 2 3 2 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/printing/printer_manager_dialog_linux.cc View 1 2 3 4 1 chunk +2 lines, -19 lines 0 comments Download
M chrome/browser/ui/webui/settings_utils_linux.cc View 1 2 3 4 2 chunks +1 line, -23 lines 0 comments Download
M net/proxy/proxy_config_service_linux.cc View 1 2 3 3 chunks +8 lines, -18 lines 0 comments Download

Messages

Total messages: 39 (16 generated)
Tom (Use chromium acct)
4 years, 6 months ago (2016-06-21 19:55:16 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2086103002/20001
4 years, 6 months ago (2016-06-21 19:56:17 UTC) #4
Lei Zhang
Maybe add unit tests to make sure 'sh' is in $PATH and 'foobar' isn't? You ...
4 years, 6 months ago (2016-06-21 21:31:21 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-21 22:10:51 UTC) #7
jam
removing myself, thestig can review base and chrome and you can add a net/ person
4 years, 6 months ago (2016-06-22 16:50:56 UTC) #10
Tom (Use chromium acct)
https://codereview.chromium.org/2086103002/diff/20001/base/files/file_util.h File base/files/file_util.h (right): https://codereview.chromium.org/2086103002/diff/20001/base/files/file_util.h#newcode204 base/files/file_util.h:204: BASE_EXPORT bool ExecutableExistsInPath(const char* executable); On 2016/06/21 21:31:21, Lei ...
4 years, 6 months ago (2016-06-22 16:57:56 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2086103002/40001
4 years, 6 months ago (2016-06-22 16:58:38 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator-gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-gn/builds/25170)
4 years, 6 months ago (2016-06-22 18:02:45 UTC) #16
mattm
https://codereview.chromium.org/2086103002/diff/40001/net/proxy/proxy_config_service_linux.cc File net/proxy/proxy_config_service_linux.cc (right): https://codereview.chromium.org/2086103002/diff/40001/net/proxy/proxy_config_service_linux.cc#newcode841 net/proxy/proxy_config_service_linux.cc:841: if (base::ExecutableExistsInPath("gnome-network-properties")) { This should probably accept the Environment ...
4 years, 6 months ago (2016-06-22 21:12:26 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2086103002/60001
4 years, 6 months ago (2016-06-23 18:47:09 UTC) #19
Tom (Use chromium acct)
On 2016/06/22 21:12:26, mattm wrote: > https://codereview.chromium.org/2086103002/diff/40001/net/proxy/proxy_config_service_linux.cc > File net/proxy/proxy_config_service_linux.cc (right): > > https://codereview.chromium.org/2086103002/diff/40001/net/proxy/proxy_config_service_linux.cc#newcode841 > ...
4 years, 6 months ago (2016-06-23 18:47:11 UTC) #20
Lei Zhang
lgtm https://codereview.chromium.org/2086103002/diff/20001/base/files/file_util.h File base/files/file_util.h (right): https://codereview.chromium.org/2086103002/diff/20001/base/files/file_util.h#newcode204 base/files/file_util.h:204: BASE_EXPORT bool ExecutableExistsInPath(const char* executable); On 2016/06/22 16:57:55, ...
4 years, 6 months ago (2016-06-23 19:17:06 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-23 20:25:47 UTC) #23
mattm
https://codereview.chromium.org/2086103002/diff/60001/chrome/browser/printing/printer_manager_dialog_linux.cc File chrome/browser/printing/printer_manager_dialog_linux.cc (right): https://codereview.chromium.org/2086103002/diff/60001/chrome/browser/printing/printer_manager_dialog_linux.cc#newcode36 chrome/browser/printing/printer_manager_dialog_linux.cc:36: if (!base::ExecutableExistsInPath(base::Environment::Create(), *command)) This will leak the Environment. (We ...
4 years, 6 months ago (2016-06-23 21:32:53 UTC) #24
Lei Zhang
https://codereview.chromium.org/2086103002/diff/60001/chrome/browser/printing/printer_manager_dialog_linux.cc File chrome/browser/printing/printer_manager_dialog_linux.cc (right): https://codereview.chromium.org/2086103002/diff/60001/chrome/browser/printing/printer_manager_dialog_linux.cc#newcode36 chrome/browser/printing/printer_manager_dialog_linux.cc:36: if (!base::ExecutableExistsInPath(base::Environment::Create(), *command)) On 2016/06/23 21:32:53, mattm wrote: > ...
4 years, 6 months ago (2016-06-23 21:35:32 UTC) #25
Tom (Use chromium acct)
https://codereview.chromium.org/2086103002/diff/60001/base/files/file_util.h File base/files/file_util.h (right): https://codereview.chromium.org/2086103002/diff/60001/base/files/file_util.h#newcode41 base/files/file_util.h:41: class Environment; On 2016/06/23 19:17:06, Lei Zhang (Slow) wrote: ...
4 years, 6 months ago (2016-06-23 21:55:12 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/2086103002/80001
4 years, 6 months ago (2016-06-23 21:55:30 UTC) #28
mattm
lgtm
4 years, 6 months ago (2016-06-23 22:04:44 UTC) #29
Lei Zhang
https://codereview.chromium.org/2086103002/diff/60001/base/files/file_util_unittest.cc File base/files/file_util_unittest.cc (right): https://codereview.chromium.org/2086103002/diff/60001/base/files/file_util_unittest.cc#newcode864 base/files/file_util_unittest.cc:864: // Write file. On 2016/06/23 21:55:12, Tom Anderson wrote: ...
4 years, 6 months ago (2016-06-23 22:21:47 UTC) #30
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/251647)
4 years, 6 months ago (2016-06-24 00:16:44 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2086103002/80001
4 years, 6 months ago (2016-06-24 01:19:03 UTC) #35
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-24 02:01:14 UTC) #37
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 02:05:15 UTC) #39
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1929bb230afca9fd8958133bbbe948edbd28aa05
Cr-Commit-Position: refs/heads/master@{#401783}

Powered by Google App Engine
This is Rietveld 408576698