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

Issue 2672003002: Remove the --allow-no-sandbox-job flag in favor of automatic recognition. (Closed)

Created:
3 years, 10 months ago by pastarmovj
Modified:
3 years, 9 months ago
Reviewers:
jwd, Will Harris
CC:
chromium-reviews, jam, darin-cc_chromium.org, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Deprecated the --allow-no-sandbox-job flag in favor of automatic recognition. Instead of requiring the user to set the flag when running Chrome in TS environment, try to recognize the environment and allow the sandbox to run without this flag whenever needed. Measure how often the automatic recognition for terminal services environment would have incorrectly decided that the job object should be applied when it shouldn't have been as dictated by the flag --allow-no-sanbox-job. BUG=687147 TEST=Manual in TS env on Win Srv 2k8 R2. Review-Url: https://codereview.chromium.org/2672003002 Cr-Commit-Position: refs/heads/master@{#454429} Committed: https://chromium.googlesource.com/chromium/src/+/7091f0852e6a60119f3cdbcc7eb34c479bf93fc9

Patch Set 1 #

Patch Set 2 : Forgot one ref to the removed switch. #

Total comments: 6

Patch Set 3 : Add source. #

Patch Set 4 : second attempt with flag. #

Patch Set 5 : add todo. #

Total comments: 9

Patch Set 6 : Address comments. #

Total comments: 1

Patch Set 7 : Reshuffle. #

Total comments: 6

Patch Set 8 : Document the histogram better. #

Total comments: 2

Patch Set 9 : Rename histogram. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -4 lines) Patch
M content/common/sandbox_win.cc View 1 2 3 4 5 6 7 8 2 chunks +22 lines, -4 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (7 generated)
pastarmovj
Hi Will, please take a look at this CL. This is one of the things ...
3 years, 10 months ago (2017-02-03 15:04:52 UTC) #2
Will Harris
I approve of the plan! https://codereview.chromium.org/2672003002/diff/20001/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/2672003002/diff/20001/content/common/sandbox_win.cc#newcode279 content/common/sandbox_win.cc:279: // According to MS ...
3 years, 10 months ago (2017-02-03 17:38:50 UTC) #3
pastarmovj
https://codereview.chromium.org/2672003002/diff/20001/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/2672003002/diff/20001/content/common/sandbox_win.cc#newcode279 content/common/sandbox_win.cc:279: // According to MS this flag can be false ...
3 years, 10 months ago (2017-02-06 13:05:27 UTC) #4
Will Harris
okay thanks for the clarifications. It would be good to have some testing here - ...
3 years, 10 months ago (2017-02-07 22:57:07 UTC) #5
pastarmovj
On 2017/02/07 22:57:07, Will Harris wrote: > okay thanks for the clarifications. > > It ...
3 years, 10 months ago (2017-02-08 12:21:28 UTC) #6
pastarmovj
On 2017/02/08 12:21:28, pastarmovj wrote: > On 2017/02/07 22:57:07, Will Harris wrote: > > okay ...
3 years, 10 months ago (2017-02-10 08:59:58 UTC) #7
Will Harris
sorry for delay I was at an offsite on wed/thur https://codereview.chromium.org/2672003002/diff/80001/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/2672003002/diff/80001/content/common/sandbox_win.cc#newcode272 ...
3 years, 10 months ago (2017-02-10 18:45:36 UTC) #8
pastarmovj
https://codereview.chromium.org/2672003002/diff/80001/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/2672003002/diff/80001/content/common/sandbox_win.cc#newcode272 content/common/sandbox_win.cc:272: return true; On 2017/02/10 18:45:35, Will Harris wrote: > ...
3 years, 10 months ago (2017-02-13 12:26:41 UTC) #9
Will Harris
sorry this CL is warping my brain I can't seem to get my head round ...
3 years, 10 months ago (2017-02-13 18:28:56 UTC) #10
pastarmovj
Moved the stats collecting above and fixed the typo. https://codereview.chromium.org/2672003002/diff/80001/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/2672003002/diff/80001/content/common/sandbox_win.cc#newcode285 content/common/sandbox_win.cc:285: ...
3 years, 10 months ago (2017-02-14 12:10:33 UTC) #11
Will Harris
https://codereview.chromium.org/2672003002/diff/100001/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/2672003002/diff/100001/content/common/sandbox_win.cc#newcode585 content/common/sandbox_win.cc:585: UMA_HISTOGRAM_BOOLEAN("Process.Sandbox.ShouldSetJobNone", should_set_job); I feel like I'm being a terrible ...
3 years, 10 months ago (2017-02-16 23:48:17 UTC) #12
pastarmovj
On 2017/02/16 23:48:17, Will Harris wrote: > https://codereview.chromium.org/2672003002/diff/100001/content/common/sandbox_win.cc > File content/common/sandbox_win.cc (right): > > https://codereview.chromium.org/2672003002/diff/100001/content/common/sandbox_win.cc#newcode585 ...
3 years, 10 months ago (2017-02-22 14:41:10 UTC) #13
pastarmovj
On 2017/02/22 14:41:10, pastarmovj wrote: > On 2017/02/16 23:48:17, Will Harris wrote: > > > ...
3 years, 9 months ago (2017-02-27 14:08:03 UTC) #14
Will Harris
On 2017/02/27 14:08:03, pastarmovj wrote: > On 2017/02/22 14:41:10, pastarmovj wrote: > > On 2017/02/16 ...
3 years, 9 months ago (2017-02-27 19:26:08 UTC) #15
pastarmovj
On 2017/02/27 19:26:08, Will Harris wrote: > On 2017/02/27 14:08:03, pastarmovj wrote: > > On ...
3 years, 9 months ago (2017-02-28 17:39:31 UTC) #16
Will Harris
lgtm. sorry for the long review timeline, and for being unclear!
3 years, 9 months ago (2017-02-28 17:42:18 UTC) #17
pastarmovj
No worries and thanks for the review! I will test it on my actual Citrix ...
3 years, 9 months ago (2017-02-28 17:48:17 UTC) #18
pastarmovj
Adding jwd for histograms.xml owner review.
3 years, 9 months ago (2017-03-01 16:22:55 UTC) #20
jwd
https://codereview.chromium.org/2672003002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2672003002/diff/120001/tools/metrics/histograms/histograms.xml#newcode52682 tools/metrics/histograms/histograms.xml:52682: +<histogram name="Process.Sandbox.JobAvoidedCorrectly" enum="Boolean"> Can you add a more descriptive ...
3 years, 9 months ago (2017-03-01 20:09:31 UTC) #21
pastarmovj
https://codereview.chromium.org/2672003002/diff/120001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2672003002/diff/120001/tools/metrics/histograms/histograms.xml#newcode52682 tools/metrics/histograms/histograms.xml:52682: +<histogram name="Process.Sandbox.JobAvoidedCorrectly" enum="Boolean"> On 2017/03/01 20:09:31, jwd wrote: > ...
3 years, 9 months ago (2017-03-02 06:28:30 UTC) #22
jwd
https://codereview.chromium.org/2672003002/diff/120001/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/2672003002/diff/120001/content/common/sandbox_win.cc#newcode252 content/common/sandbox_win.cc:252: // Checks if the sandbox should be let to ...
3 years, 9 months ago (2017-03-02 19:58:14 UTC) #23
jwd
The intent of this change appears to have changed, can you update the title and ...
3 years, 9 months ago (2017-03-02 19:59:12 UTC) #24
pastarmovj
PTAL. https://codereview.chromium.org/2672003002/diff/120001/content/common/sandbox_win.cc File content/common/sandbox_win.cc (right): https://codereview.chromium.org/2672003002/diff/120001/content/common/sandbox_win.cc#newcode252 content/common/sandbox_win.cc:252: // Checks if the sandbox should be let ...
3 years, 9 months ago (2017-03-02 20:21:21 UTC) #26
jwd
https://codereview.chromium.org/2672003002/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2672003002/diff/140001/tools/metrics/histograms/histograms.xml#newcode52690 tools/metrics/histograms/histograms.xml:52690: + insignificant. Ah, ok, so you care about the ...
3 years, 9 months ago (2017-03-02 20:55:24 UTC) #27
pastarmovj
https://codereview.chromium.org/2672003002/diff/140001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2672003002/diff/140001/tools/metrics/histograms/histograms.xml#newcode52690 tools/metrics/histograms/histograms.xml:52690: + insignificant. On 2017/03/02 20:55:24, jwd wrote: > Ah, ...
3 years, 9 months ago (2017-03-02 21:11:10 UTC) #28
jwd
lgtm
3 years, 9 months ago (2017-03-02 21:49:00 UTC) #29
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/2672003002/160001
3 years, 9 months ago (2017-03-02 21:52:02 UTC) #32
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 23:25:03 UTC) #35
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/7091f0852e6a60119f3cdbcc7eb3...

Powered by Google App Engine
This is Rietveld 408576698