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

Issue 1612663002: Use a valid /prefetch argument when launching a process. (Closed)

Created:
4 years, 11 months ago by fdoray
Modified:
4 years, 10 months ago
Reviewers:
gab, jam, Will Harris
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, rickyz+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@bit
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use a valid /prefetch argument when launching a process. The /prefetch:# argument that is currently added to the command line of processes launched with content::StartSandboxedProcess is ignored by Windows because # doesn't respect the [1, 8] constraint. This CL ensures that a valid /prefetch:# argument is used for every process launch (except when the feature is disabled by the PreRead field trial). BUG=577698 Committed: https://crrev.com/343068c41c299e65a87d935654f0b81a9935250f Cr-Commit-Position: refs/heads/master@{#373241}

Patch Set 1 #

Total comments: 7

Patch Set 2 : No content -> component dependency. #

Patch Set 3 : add missing file #

Patch Set 4 : no AddWindowsPrefetchArgument function #

Patch Set 5 : self-review #

Total comments: 30

Patch Set 6 : address comments from gab #10 #

Total comments: 4

Patch Set 7 : rebase #

Patch Set 8 : fix compile error in crashpad_win.cc #

Patch Set 9 : remove crashpad->content dependency #

Patch Set 10 : address comments from gab #13 #

Total comments: 12

Patch Set 11 : rebase #

Patch Set 12 : address comments from gab #15 #

Patch Set 13 : self review #

Patch Set 14 : self review #

Patch Set 15 : self review #

Patch Set 16 : rebase + prefetch argument for crashpad #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -47 lines) Patch
M chrome/app/chrome_exe_main_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +47 lines, -7 lines 0 comments Download
M chrome/app/chrome_watcher_command_line_win.cc View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/app/main_dll_loader_win.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_installer_util.gypi View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/DEPS View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/service_process_util.cc View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/installer/util/BUILD.gn View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/installer/util/DEPS View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/installer/util/auto_launch_util.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/service/BUILD.gn View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/service/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/service/service_utility_process_host.cc View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M cloud_print/service/win/chrome_launcher.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M components/crash.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +7 lines, -0 lines 0 comments Download
M components/crash/content/app/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +7 lines, -0 lines 0 comments Download
M components/crash/content/app/DEPS View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M components/crash/content/app/crashpad_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -0 lines 0 comments Download
M components/nacl.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M components/nacl/browser/BUILD.gn View 1 1 chunk +8 lines, -0 lines 0 comments Download
M components/nacl/browser/DEPS View 1 1 chunk +3 lines, -0 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +7 lines, -1 line 0 comments Download
M components/startup_metric_utils/common/pre_read_field_trial_utils_win.h View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M components/startup_metric_utils/common/pre_read_field_trial_utils_win.cc View 1 2 3 4 5 3 chunks +18 lines, -22 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/plugin_process_host.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/utility_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M content/common/sandbox_win.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (8 generated)
fdoray
gab@: Can you review components/startup_metric_utils/? jam@: Can you review content/? For now, prefetch_argument_win.h/.cc are in ...
4 years, 11 months ago (2016-01-20 22:26:31 UTC) #2
jam
https://codereview.chromium.org/1612663002/diff/1/content/public/common/DEPS File content/public/common/DEPS (right): https://codereview.chromium.org/1612663002/diff/1/content/public/common/DEPS#newcode11 content/public/common/DEPS:11: "+components/startup_metric_utils/common/pre_read_field_trial_utils_win.h" content shouldn't depend on this component, even temporarily. ...
4 years, 11 months ago (2016-01-20 23:17:36 UTC) #3
fdoray
jam@: I replied to your comments. https://codereview.chromium.org/1612663002/diff/1/content/public/common/DEPS File content/public/common/DEPS (right): https://codereview.chromium.org/1612663002/diff/1/content/public/common/DEPS#newcode11 content/public/common/DEPS:11: "+components/startup_metric_utils/common/pre_read_field_trial_utils_win.h" On 2016/01/20 ...
4 years, 11 months ago (2016-01-21 01:39:51 UTC) #4
jam
On 2016/01/21 01:39:51, fdoray wrote: > jam@: I replied to your comments. > > https://codereview.chromium.org/1612663002/diff/1/content/public/common/DEPS ...
4 years, 11 months ago (2016-01-21 17:19:02 UTC) #5
gab
lg % DEPS discussion and a few things below https://codereview.chromium.org/1612663002/diff/1/content/browser/plugin_process_host.cc File content/browser/plugin_process_host.cc (right): https://codereview.chromium.org/1612663002/diff/1/content/browser/plugin_process_host.cc#newcode214 content/browser/plugin_process_host.cc:214: ...
4 years, 11 months ago (2016-01-21 20:22:59 UTC) #6
fdoray
gab@: Can you take a look at what I did? I'm working on the browser ...
4 years, 11 months ago (2016-01-26 17:04:20 UTC) #9
gab
So many dependency rules at play here.. sigh..! I think this works with a bit ...
4 years, 11 months ago (2016-01-26 21:40:26 UTC) #10
fdoray
gab@: ptal https://codereview.chromium.org/1612663002/diff/80001/chrome/app/chrome_exe_main_win.cc File chrome/app/chrome_exe_main_win.cc (right): https://codereview.chromium.org/1612663002/diff/80001/chrome/app/chrome_exe_main_win.cc#newcode170 chrome/app/chrome_exe_main_win.cc:170: DCHECK_EQ(storage.size(), arg_append_index); On 2016/01/26 21:40:25, gab wrote: ...
4 years, 11 months ago (2016-01-27 20:12:19 UTC) #11
fdoray
gab@ and jam@: Can you take another look at this CL? Thanks. https://codereview.chromium.org/1612663002/diff/80001/components/crash/content/app/crashpad_win.cc File components/crash/content/app/crashpad_win.cc ...
4 years, 10 months ago (2016-01-28 22:11:06 UTC) #12
gab
lvg, still need to do a full pass when I get to the office, but ...
4 years, 10 months ago (2016-01-29 12:46:25 UTC) #13
fdoray
gab@: Done. PTAL. https://codereview.chromium.org/1612663002/diff/80001/chrome/app/chrome_exe_main_win.cc File chrome/app/chrome_exe_main_win.cc (right): https://codereview.chromium.org/1612663002/diff/80001/chrome/app/chrome_exe_main_win.cc#newcode209 chrome/app/chrome_exe_main_win.cc:209: !command_line->HasSwitch(switches::kNoStartupWindow)) || On 2016/01/29 12:46:25, gab ...
4 years, 10 months ago (2016-01-29 15:33:30 UTC) #14
gab
Just did a full pass, LGTM w/ a few minor comments :-)! (still kind of ...
4 years, 10 months ago (2016-01-29 19:39:28 UTC) #15
fdoray
jam@: Can you review this CL? gab@: All done. https://codereview.chromium.org/1612663002/diff/180001/chrome/app/chrome_exe_main_win.cc File chrome/app/chrome_exe_main_win.cc (right): https://codereview.chromium.org/1612663002/diff/180001/chrome/app/chrome_exe_main_win.cc#newcode162 chrome/app/chrome_exe_main_win.cc:162: ...
4 years, 10 months ago (2016-02-01 13:28:26 UTC) #16
jam
content looks good now, but I see content/renderer still depends on components/startup_metric_utils/common. can that be ...
4 years, 10 months ago (2016-02-01 18:04:43 UTC) #17
fdoray
On 2016/02/01 18:04:43, jam wrote: > content looks good now, but I see content/renderer still ...
4 years, 10 months ago (2016-02-01 21:53:37 UTC) #18
jam
lgtm
4 years, 10 months ago (2016-02-02 23:51:54 UTC) #19
fdoray
+wfh: Can you review changes in content/common/sandbox_win.cc? Thanks.
4 years, 10 months ago (2016-02-03 03:00:14 UTC) #21
Will Harris
On 2016/02/03 03:00:14, fdoray wrote: > +wfh: Can you review changes in content/common/sandbox_win.cc? Thanks. I ...
4 years, 10 months ago (2016-02-03 04:09:54 UTC) #22
fdoray
On 2016/02/03 04:09:54, Will Harris wrote: > On 2016/02/03 03:00:14, fdoray wrote: > > +wfh: ...
4 years, 10 months ago (2016-02-03 13:51:19 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1612663002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1612663002/300001
4 years, 10 months ago (2016-02-03 13:51:35 UTC) #26
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 10 months ago (2016-02-03 15:46:08 UTC) #28
commit-bot: I haz the power
4 years, 10 months ago (2016-02-03 15:47:17 UTC) #30
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/343068c41c299e65a87d935654f0b81a9935250f
Cr-Commit-Position: refs/heads/master@{#373241}

Powered by Google App Engine
This is Rietveld 408576698