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

Issue 1341873002: Enabling 64-bit mojo shell to launch 32-bit child to handle nonsfi content. (Closed)

Created:
5 years, 3 months ago by Sean Klein
Modified:
5 years, 3 months ago
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Enabling 64-bit mojo shell to launch 32-bit child to handle nonsfi content. This patch allows the nonsfi content handler to be used from the mojo shell in two ways. First, it can be built for a purely 32-bit system (--target-cpu=x86), and run without "--enable-multiprocess". Alternatively, the nonsfi content handler can be run from a 64-bit version of the mojo shell, as long as "--enable-multiprocess" is used. This will fork/exec a 32-bit child whenever the nonsfi content handler is detected. BUG=https://github.com/domokit/mojo/issues/396 R=mseaborn@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/a7ffbe0f340df9adc1b3f948b8a5c83593308701

Patch Set 1 : #

Total comments: 32

Patch Set 2 : #

Total comments: 13

Patch Set 3 : #

Total comments: 12

Patch Set 4 : Anonymous namespaces and modified target names #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -21 lines) Patch
M services/nacl/BUILD.gn View 1 2 3 1 chunk +45 lines, -14 lines 0 comments Download
M shell/BUILD.gn View 1 2 chunks +32 lines, -1 line 0 comments Download
M shell/child_process_host.h View 1 chunk +1 line, -1 line 0 comments Download
M shell/child_process_host.cc View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M shell/child_process_host_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M shell/out_of_process_native_runner.cc View 1 2 3 2 chunks +32 lines, -1 line 0 comments Download

Messages

Total messages: 14 (4 generated)
Sean Klein
https://codereview.chromium.org/1341873002/diff/20001/shell/context.cc File shell/context.cc (right): https://codereview.chromium.org/1341873002/diff/20001/shell/context.cc#newcode261 shell/context.cc:261: shell_path.DirName().AppendASCII("clang_x86/mojo_shell_child"); I'm not entirely sure if I should be ...
5 years, 3 months ago (2015-09-14 18:10:34 UTC) #3
Mark Seaborn
https://codereview.chromium.org/1341873002/diff/20001/services/nacl/BUILD.gn File services/nacl/BUILD.gn (right): https://codereview.chromium.org/1341873002/diff/20001/services/nacl/BUILD.gn#newcode49 services/nacl/BUILD.gn:49: # Copy to the root build directory so our ...
5 years, 3 months ago (2015-09-14 18:38:59 UTC) #4
Petr Hosek
https://codereview.chromium.org/1341873002/diff/20001/mojo/nacl/BUILD.gn File mojo/nacl/BUILD.gn (right): https://codereview.chromium.org/1341873002/diff/20001/mojo/nacl/BUILD.gn#newcode107 mojo/nacl/BUILD.gn:107: "//services/nacl:nacl_content_handler_nonsfi_x86", What if we're building Mojo on ARM (e.g. ...
5 years, 3 months ago (2015-09-14 19:13:52 UTC) #5
Sean Klein
https://codereview.chromium.org/1341873002/diff/20001/mojo/nacl/BUILD.gn File mojo/nacl/BUILD.gn (right): https://codereview.chromium.org/1341873002/diff/20001/mojo/nacl/BUILD.gn#newcode107 mojo/nacl/BUILD.gn:107: "//services/nacl:nacl_content_handler_nonsfi_x86", On 2015/09/14 19:13:51, Petr Hosek wrote: > What ...
5 years, 3 months ago (2015-09-15 18:37:50 UTC) #8
Mark Seaborn
https://codereview.chromium.org/1341873002/diff/20001/shell/out_of_process_native_runner.cc File shell/out_of_process_native_runner.cc (right): https://codereview.chromium.org/1341873002/diff/20001/shell/out_of_process_native_runner.cc#newcode45 shell/out_of_process_native_runner.cc:45: require_32_bit = true; On 2015/09/15 18:37:50, smklein1 wrote: > ...
5 years, 3 months ago (2015-09-15 19:42:58 UTC) #9
Sean Klein
https://codereview.chromium.org/1341873002/diff/80001/shell/child_process_host.cc File shell/child_process_host.cc (right): https://codereview.chromium.org/1341873002/diff/80001/shell/child_process_host.cc#newcode52 shell/child_process_host.cc:52: context_->mojo_shell_child_path().InsertBeforeExtensionASCII("_32"); On 2015/09/15 19:42:58, Mark Seaborn wrote: > It ...
5 years, 3 months ago (2015-09-15 21:35:41 UTC) #10
Mark Seaborn
LGTM https://codereview.chromium.org/1341873002/diff/80001/shell/out_of_process_native_runner.cc File shell/out_of_process_native_runner.cc (right): https://codereview.chromium.org/1341873002/diff/80001/shell/out_of_process_native_runner.cc#newcode48 shell/out_of_process_native_runner.cc:48: assert(false); On 2015/09/15 21:35:40, smklein1 wrote: > On ...
5 years, 3 months ago (2015-09-15 22:25:44 UTC) #11
Petr Hosek
https://codereview.chromium.org/1341873002/diff/100001/services/nacl/BUILD.gn File services/nacl/BUILD.gn (right): https://codereview.chromium.org/1341873002/diff/100001/services/nacl/BUILD.gn#newcode32 services/nacl/BUILD.gn:32: mojo_native_application("nacl_content_handler_nonsfi_x86") { I'd probably name it as "nacl_content_handler_nonsfi_mojo"; then ...
5 years, 3 months ago (2015-09-15 22:40:27 UTC) #12
Sean Klein
https://codereview.chromium.org/1341873002/diff/100001/services/nacl/BUILD.gn File services/nacl/BUILD.gn (right): https://codereview.chromium.org/1341873002/diff/100001/services/nacl/BUILD.gn#newcode32 services/nacl/BUILD.gn:32: mojo_native_application("nacl_content_handler_nonsfi_x86") { On 2015/09/15 22:40:27, Petr Hosek wrote: > ...
5 years, 3 months ago (2015-09-15 22:56:05 UTC) #13
Sean Klein
5 years, 3 months ago (2015-09-16 00:30:43 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:120001) manually as
a7ffbe0f340df9adc1b3f948b8a5c83593308701 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698