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

Issue 2081183005: Use ChannelMojo from the browser to NaCl loader process. (Closed)

Created:
4 years, 6 months ago by Anand Mistry (off Chromium)
Modified:
4 years, 3 months ago
CC:
chromium-reviews, droger+watchlist_chromium.org, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, jam, rickyz+watch_chromium.org, darin-cc_chromium.org, Sam McNally
Base URL:
https://chromium.googlesource.com/chromium/src.git@mojo-ipc-channel-handle
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use ChannelMojo from the browser to NaCl loader process. BUG=604282

Patch Set 1 #

Patch Set 2 : gn check #

Patch Set 3 : Fix build and revert ppapihost change. #

Patch Set 4 : rebase and fix windows build #

Patch Set 5 : undo windows broker #

Patch Set 6 : Fix build issues. #

Patch Set 7 : Change init. #

Patch Set 8 : Windwos broker support. #

Patch Set 9 : jfhgjdhgjdf #

Total comments: 22

Patch Set 10 : windows fix #

Patch Set 11 : uyfghjiuytfc #

Patch Set 12 : Cleanup. #

Patch Set 13 : rebase #

Total comments: 7

Patch Set 14 : rebase and review comments #

Patch Set 15 : Windows build rule fix. #

Patch Set 16 : rebase #

Patch Set 17 : rebase #

Patch Set 18 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -50 lines) Patch
M components/nacl/broker/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/broker/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M components/nacl/broker/nacl_broker_listener.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M components/nacl/broker/nacl_broker_listener.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +62 lines, -9 lines 0 comments Download
M components/nacl/browser/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/browser/nacl_broker_host_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M components/nacl/browser/nacl_broker_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +17 lines, -9 lines 0 comments Download
M components/nacl/browser/nacl_process_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 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 5 chunks +15 lines, -6 lines 0 comments Download
M components/nacl/loader/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
M components/nacl/loader/nacl_helper_linux.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M components/nacl/loader/nacl_helper_win_64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +11 lines, -0 lines 0 comments Download
M components/nacl/loader/nacl_listener.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +28 lines, -4 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_listener.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -0 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_listener.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +22 lines, -3 lines 0 comments Download
M content/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/content_nacl_nonsfi.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/zygote_fork_delegate_linux.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/zygote/zygote_linux.cc View 3 chunks +5 lines, -8 lines 0 comments Download
M ppapi/nacl_irt/irt_start.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M ppapi/nacl_irt/plugin_startup.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M ppapi/nacl_irt/plugin_startup.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +7 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (9 generated)
Anand Mistry (off Chromium)
sievers@chromium.org: Please review changes in content bbudge@chromium.org: Please review changes in nacl_irt mseaborn@chromium.org: Please review ...
4 years, 6 months ago (2016-06-24 03:26:56 UTC) #2
dcheng
I don't think I'm comfortable commenting from a security perspective. Overall, I think knowledge of ...
4 years, 6 months ago (2016-06-24 23:19:27 UTC) #4
Anand Mistry (off Chromium)
Ping! The windows issue is fixed, so this now passes all tests (the chromeos test ...
4 years, 5 months ago (2016-06-30 01:40:21 UTC) #5
Anand Mistry (off Chromium)
Ping again!
4 years, 5 months ago (2016-07-07 01:06:24 UTC) #6
Mark Seaborn
https://codereview.chromium.org/2081183005/diff/240001/content/zygote/zygote_linux.cc File content/zygote/zygote_linux.cc (right): https://codereview.chromium.org/2081183005/diff/240001/content/zygote/zygote_linux.cc#newcode440 content/zygote/zygote_linux.cc:440: DCHECK_EQ(-1, ipc_channel_fd); Is there a reason for changing this ...
4 years, 5 months ago (2016-07-08 18:22:25 UTC) #7
Mark Seaborn
https://codereview.chromium.org/2081183005/diff/160001/components/nacl/broker/nacl_broker_listener.cc File components/nacl/broker/nacl_broker_listener.cc (right): https://codereview.chromium.org/2081183005/diff/160001/components/nacl/broker/nacl_broker_listener.cc#newcode44 components/nacl/broker/nacl_broker_listener.cc:44: mojo::edk::Init(); How about putting this global-init stuff in NaClBrokerMain(), ...
4 years, 5 months ago (2016-07-08 20:26:19 UTC) #8
Anand Mistry (off Chromium)
https://codereview.chromium.org/2081183005/diff/160001/components/nacl/broker/nacl_broker_listener.cc File components/nacl/broker/nacl_broker_listener.cc (right): https://codereview.chromium.org/2081183005/diff/160001/components/nacl/broker/nacl_broker_listener.cc#newcode44 components/nacl/broker/nacl_broker_listener.cc:44: mojo::edk::Init(); On 2016/07/08 20:26:19, Mark Seaborn wrote: > How ...
4 years, 5 months ago (2016-07-12 07:26:23 UTC) #9
Anand Mistry (off Chromium)
Ping!
4 years, 5 months ago (2016-07-20 04:58:49 UTC) #10
Anand Mistry (off Chromium)
rebase
4 years, 5 months ago (2016-07-21 01:22:35 UTC) #15
Sam McNally
ping?
4 years, 3 months ago (2016-09-01 08:33:06 UTC) #17
Mark Seaborn
LGTM. Can you just address my nit about StartUpPlugin(), please? https://codereview.chromium.org/2081183005/diff/240001/content/zygote/zygote_linux.cc File content/zygote/zygote_linux.cc (right): https://codereview.chromium.org/2081183005/diff/240001/content/zygote/zygote_linux.cc#newcode440 ...
4 years, 3 months ago (2016-09-01 18:43:31 UTC) #18
Sam McNally
4 years, 3 months ago (2016-09-02 04:42:10 UTC) #21
https://codereview.chromium.org/2081183005/diff/240001/ppapi/nacl_irt/irt_sta...
File ppapi/nacl_irt/irt_start.cc (right):

https://codereview.chromium.org/2081183005/diff/240001/ppapi/nacl_irt/irt_sta...
ppapi/nacl_irt/irt_start.cc:31: ppapi::StartUpPlugin(true);
On 2016/09/01 18:43:31, Mark Seaborn wrote:
> On 2016/07/12 07:26:23, Anand Mistry (off Chromium) wrote:
> > On 2016/07/08 18:22:25, Mark Seaborn wrote:
> > > Instead of parameterising whether ppapi::StartUpPlugin() calls
> > > mojo::edk::Init(), how about just calling mojo::edk::Init() here?  That
> would
> > be
> > > clearer.
> > 
> > It's not in this CL because it's not necessary yet, but there's more to this
> > than just calling mojo::edk::Init(). We also need to initialize Mojo's
> internal
> > task runner using the IO thread created by StartUpPlugin(). But that's for a
> > follow-up.
> 
> I see.  I'd still prefer if you didn't parameterise this function in this CL. 
> Would you mind keeping the code simpler/clearer for now, and leave the extra
> complexity for later changes when it becomes necessary?

Done in https://codereview.chromium.org/2305913002/.

Powered by Google App Engine
This is Rietveld 408576698