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

Issue 1378303005: Do some plumbing. (Closed)

Created:
5 years, 2 months ago by viettrungluu
Modified:
5 years, 2 months ago
Reviewers:
vardhan
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, yzshen+watch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Do some plumbing. * Move execution options for native apps into its own independent struct (rather than be NativeRunnerFactory::Options). * Plumb this all the way down, using it appropriately (this requires adding fields to the options struct). * E.g., require_32_bit is now one of the options. * In ApplicationManager, replace SetNativeOptionsForURL() with something that returns a (non-const) reference to the options struct for the give URL. This is useful since we sometimes want to fiddle with various options independently. * Add a "allow_new_privs" option. When running in multiprocess, we may or may not want the child to acquire new privileges (typically not, but sometimes -- e.g., without it, you can't run sudo/screen/other setuid programs through mojo:native_support). * Hack in hardcoded support to set allow_new_privs for mojo:native_support. * In general, we need a better, more complete, more consistent way of setting options for native apps (e.g., sandboxing options). R=vardhan@google.com Committed: https://chromium.googlesource.com/external/mojo/+/64bb17c85985e4f6e2b3311dcf78fc7d2c520958

Patch Set 1 #

Total comments: 1

Patch Set 2 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -70 lines) Patch
M shell/application_manager/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M shell/application_manager/application_manager.h View 1 4 chunks +15 lines, -14 lines 0 comments Download
M shell/application_manager/application_manager.cc View 1 3 chunks +5 lines, -8 lines 0 comments Download
A shell/application_manager/native_application_options.h View 1 chunk +22 lines, -0 lines 0 comments Download
M shell/application_manager/native_runner.h View 2 chunks +4 lines, -10 lines 0 comments Download
M shell/child_process_host.h View 2 chunks +2 lines, -1 line 0 comments Download
M shell/child_process_host.cc View 4 chunks +10 lines, -2 lines 0 comments Download
M shell/child_process_host_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M shell/context.cc View 1 2 chunks +9 lines, -5 lines 0 comments Download
M shell/in_process_native_runner.h View 1 chunk +2 lines, -1 line 0 comments Download
M shell/in_process_native_runner.cc View 1 chunk +1 line, -1 line 0 comments Download
M shell/native_runner_unittest.cc View 2 chunks +3 lines, -1 line 0 comments Download
M shell/out_of_process_native_runner.h View 4 chunks +6 lines, -2 lines 0 comments Download
M shell/out_of_process_native_runner.cc View 3 chunks +28 lines, -23 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
viettrungluu
5 years, 2 months ago (2015-10-02 18:13:03 UTC) #1
vardhan
lgtm w/ small comment https://codereview.chromium.org/1378303005/diff/1/shell/application_manager/application_manager.cc File shell/application_manager/application_manager.cc (right): https://codereview.chromium.org/1378303005/diff/1/shell/application_manager/application_manager.cc#newcode451 shell/application_manager/application_manager.cc:451: NativeApplicationOptions& ApplicationManager::NativeApplicationOptionsForURL( Seems like this ...
5 years, 2 months ago (2015-10-02 23:18:35 UTC) #2
viettrungluu
Thanks. On 2015/10/02 23:18:35, vardhan wrote: > lgtm w/ small comment > > https://codereview.chromium.org/1378303005/diff/1/shell/application_manager/application_manager.cc > ...
5 years, 2 months ago (2015-10-03 00:01:47 UTC) #3
viettrungluu
5 years, 2 months ago (2015-10-03 00:02:08 UTC) #4
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
64bb17c85985e4f6e2b3311dcf78fc7d2c520958 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698