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

Issue 2961333002: Fix field trials not working in utility processes. (Closed)

Created:
3 years, 5 months ago by jam
Modified:
3 years, 5 months ago
CC:
chromium-reviews, chromoting-reviews_chromium.org, vmpstr+watch_chromium.org, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, danakj+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix field trials not working in utility processes. The simple change in utility_process_host_impl.cc wasn't enough, since utility processes can be launched elevated on Windows. In that cause, handle inheritence doesn't work since base::LaunchElevatedProcess doesn't (and can't) handle this. However, since the elevated process is by definition not sandboxed, have it duplicated the shared memory handle manually. BUG=598073 Review-Url: https://codereview.chromium.org/2961333002 Cr-Commit-Position: refs/heads/master@{#483727} Committed: https://chromium.googlesource.com/chromium/src/+/b18e53ad3d63f5c36792d7025600bc9b47c6f5d7

Patch Set 1 #

Patch Set 2 : fix clang #

Total comments: 2

Patch Set 3 : review comment #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -92 lines) Patch
M base/metrics/field_trial.cc View 2 chunks +13 lines, -0 lines 2 comments Download
M base/process/process_info.h View 1 chunk +4 lines, -0 lines 0 comments Download
M base/process/process_info_win.cc View 4 chunks +32 lines, -10 lines 2 comments Download
M content/browser/utility_process_host_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/it2me/it2me_native_messaging_host_main.cc View 1 2 1 chunk +20 lines, -1 line 0 comments Download
M remoting/host/setup/me2me_native_messaging_host_main.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/setup/start_host_main.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/win/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
D remoting/host/win/elevation_helpers.h View 1 chunk +0 lines, -18 lines 0 comments Download
D remoting/host/win/elevation_helpers.cc View 1 chunk +0 lines, -57 lines 0 comments Download

Messages

Total messages: 32 (21 generated)
jam
sergeyu: remoting asvitkine: the rest
3 years, 5 months ago (2017-06-29 22:00:09 UTC) #4
jam
btw this was exposed by https://codereview.chromium.org/2960703003/
3 years, 5 months ago (2017-06-29 22:00:40 UTC) #5
Sergey Ulanov
remoting lgtm https://codereview.chromium.org/2961333002/diff/20001/remoting/host/it2me/it2me_native_messaging_host_main.cc File remoting/host/it2me/it2me_native_messaging_host_main.cc (right): https://codereview.chromium.org/2961333002/diff/20001/remoting/host/it2me/it2me_native_messaging_host_main.cc#newcode63 remoting/host/it2me/it2me_native_messaging_host_main.cc:63: #endif // defined(OS_WIN) && defined(OFFICIAL_BUILD)
3 years, 5 months ago (2017-06-29 23:57:23 UTC) #10
jam
+thestig for base/process https://codereview.chromium.org/2961333002/diff/20001/remoting/host/it2me/it2me_native_messaging_host_main.cc File remoting/host/it2me/it2me_native_messaging_host_main.cc (right): https://codereview.chromium.org/2961333002/diff/20001/remoting/host/it2me/it2me_native_messaging_host_main.cc#newcode63 remoting/host/it2me/it2me_native_messaging_host_main.cc:63: #endif On 2017/06/29 23:57:23, Sergey Ulanov ...
3 years, 5 months ago (2017-06-30 14:39:59 UTC) #18
Alexei Svitkine (slow)
lgtm
3 years, 5 months ago (2017-06-30 14:53:59 UTC) #19
(unused - use chromium)
base/process_info lgtm, some soapboxing below. https://codereview.chromium.org/2961333002/diff/40001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2961333002/diff/40001/base/metrics/field_trial.cc#newcode1156 base/metrics/field_trial.cc:1156: } Having OS-dependent elevantion-level-dependent ...
3 years, 5 months ago (2017-06-30 16:15:18 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2961333002/40001
3 years, 5 months ago (2017-06-30 16:15:54 UTC) #24
jam
https://codereview.chromium.org/2961333002/diff/40001/base/process/process_info_win.cc File base/process/process_info_win.cc (right): https://codereview.chromium.org/2961333002/diff/40001/base/process/process_info_win.cc#newcode18 base/process/process_info_win.cc:18: HANDLE GetCurrentProcessToken() { On 2017/06/30 16:15:18, (unused - use ...
3 years, 5 months ago (2017-06-30 16:16:49 UTC) #27
Alexei Svitkine (slow)
https://codereview.chromium.org/2961333002/diff/40001/base/metrics/field_trial.cc File base/metrics/field_trial.cc (right): https://codereview.chromium.org/2961333002/diff/40001/base/metrics/field_trial.cc#newcode1156 base/metrics/field_trial.cc:1156: } On 2017/06/30 16:15:18, (unused - use chromium) wrote: ...
3 years, 5 months ago (2017-06-30 16:20:37 UTC) #28
chromium-reviews
On Fri, Jun 30, 2017 at 12:20 PM, <asvitkine@chromium.org> wrote: > > https://codereview.chromium.org/2961333002/diff/40001/ > base/metrics/field_trial.cc ...
3 years, 5 months ago (2017-06-30 16:21:58 UTC) #29
commit-bot: I haz the power
3 years, 5 months ago (2017-06-30 16:28:46 UTC) #32
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b18e53ad3d63f5c36792d7025600...

Powered by Google App Engine
This is Rietveld 408576698