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

Issue 10546140: Add untrusted NaCl build for PPAPI proxy. (Closed)

Created:
8 years, 6 months ago by bbudge
Modified:
8 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add untrusted NaCl build for PPAPI proxy. This patch refactors ppapi_shared.gypi and ppapi_proxy.gypi into proper includes, adds ppapi_shared_untrusted and ppapi_proxy_untrusted .gyp files, and integrates them into the nacl_irt build (ppapi/native_client/native_client.gyp). In order to build without link errors, it includes our plugin side initialization of PluginDispatcher, and a PpapiPluginMain definition. When the 'build_ppapi_ipc_proxy_untrusted' gyp flag is set to '1', this will build a working NaCl IRT using the Chrome IPC proxy. BUG=116317 TEST=compiles, runs HelloWorld and GetURL SDK examples. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142482

Patch Set 1 : #

Total comments: 33

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+933 lines, -924 lines) Patch
M base/base.gypi View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M base/base_untrusted.gyp View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
D base/rand_util_nacl.cc View 1 2 3 4 1 chunk +0 lines, -53 lines 0 comments Download
M build/all.gyp View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M ipc/ipc_channel.cc View 1 2 3 4 1 chunk +4 lines, -5 lines 0 comments Download
M ipc/ipc_untrusted.gyp View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M ppapi/native_client/native_client.gyp View 1 2 3 4 5 3 chunks +162 lines, -1 line 0 comments Download
M ppapi/ppapi_internal.gyp View 1 2 3 4 1 chunk +61 lines, -0 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 1 chunk +194 lines, -172 lines 0 comments Download
M ppapi/ppapi_proxy_untrusted.gyp View 1 2 3 4 1 chunk +27 lines, -7 lines 0 comments Download
D ppapi/ppapi_proxy_untrusted.gypi View 1 2 3 4 1 chunk +0 lines, -416 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 1 chunk +296 lines, -259 lines 0 comments Download
A ppapi/ppapi_shared_untrusted.gyp View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
M ppapi/proxy/DEPS View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
A ppapi/proxy/plugin_main_nacl.cc View 1 2 1 chunk +140 lines, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
bbudge
This should finish the untrusted build of the NaCl IRT w/ Chrome IPC proxy for ...
8 years, 6 months ago (2012-06-13 19:49:10 UTC) #1
bbudge
On 2012/06/13 19:49:10, bbudge1 wrote: > This should finish the untrusted build of the NaCl ...
8 years, 6 months ago (2012-06-13 19:51:13 UTC) #2
bradnelson
http://codereview.chromium.org/10546140/diff/5017/build/all.gyp File build/all.gyp (left): http://codereview.chromium.org/10546140/diff/5017/build/all.gyp#oldcode21 build/all.gyp:21: '../ipc/ipc_untrusted.gyp:*', So actually you can leave this in (as ...
8 years, 6 months ago (2012-06-13 20:21:17 UTC) #3
Mark Seaborn
http://codereview.chromium.org/10546140/diff/5017/ppapi/native_client/native_client.gyp File ppapi/native_client/native_client.gyp (right): http://codereview.chromium.org/10546140/diff/5017/ppapi/native_client/native_client.gyp#newcode186 ppapi/native_client/native_client.gyp:186: ['disable_nacl==0 and disable_nacl_untrusted==0 and build_ppapi_ipc_proxy_untrusted==1', { We had discussed ...
8 years, 6 months ago (2012-06-13 20:27:37 UTC) #4
bbudge
http://codereview.chromium.org/10546140/diff/5017/build/all.gyp File build/all.gyp (left): http://codereview.chromium.org/10546140/diff/5017/build/all.gyp#oldcode21 build/all.gyp:21: '../ipc/ipc_untrusted.gyp:*', On 2012/06/13 20:21:17, bradnelson wrote: > So actually ...
8 years, 6 months ago (2012-06-14 02:45:10 UTC) #5
bbudge
http://codereview.chromium.org/10546140/diff/5017/ppapi/native_client/native_client.gyp File ppapi/native_client/native_client.gyp (right): http://codereview.chromium.org/10546140/diff/5017/ppapi/native_client/native_client.gyp#newcode186 ppapi/native_client/native_client.gyp:186: ['disable_nacl==0 and disable_nacl_untrusted==0 and build_ppapi_ipc_proxy_untrusted==1', { I'm assuming we ...
8 years, 6 months ago (2012-06-14 03:01:18 UTC) #6
dmichael (off chromium)
http://codereview.chromium.org/10546140/diff/5017/ppapi/native_client/native_client.gyp File ppapi/native_client/native_client.gyp (right): http://codereview.chromium.org/10546140/diff/5017/ppapi/native_client/native_client.gyp#newcode186 ppapi/native_client/native_client.gyp:186: ['disable_nacl==0 and disable_nacl_untrusted==0 and build_ppapi_ipc_proxy_untrusted==1', { On 2012/06/13 20:27:37, ...
8 years, 6 months ago (2012-06-14 03:12:41 UTC) #7
brettw
owners lgtm http://codereview.chromium.org/10546140/diff/11016/ppapi/proxy/plugin_globals_nacl.cc File ppapi/proxy/plugin_globals_nacl.cc (right): http://codereview.chromium.org/10546140/diff/11016/ppapi/proxy/plugin_globals_nacl.cc#newcode100 ppapi/proxy/plugin_globals_nacl.cc:100: extern "C" { I'd put a blank ...
8 years, 6 months ago (2012-06-14 20:01:04 UTC) #8
Mark Seaborn
http://codereview.chromium.org/10546140/diff/5017/ppapi/proxy/plugin_globals_nacl.cc File ppapi/proxy/plugin_globals_nacl.cc (right): http://codereview.chromium.org/10546140/diff/5017/ppapi/proxy/plugin_globals_nacl.cc#newcode32 ppapi/proxy/plugin_globals_nacl.cc:32: #define NACL_IPC_FD 6 // TODO(use API constant) On 2012/06/14 ...
8 years, 6 months ago (2012-06-14 21:49:20 UTC) #9
bbudge
Uploading a revised patch to address comments and fix my linking problem. The link problem ...
8 years, 6 months ago (2012-06-15 01:07:32 UTC) #10
bbudge
Needed a comma in src/ppapi/proxy/DEPS.
8 years, 6 months ago (2012-06-15 01:14:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/10546140/15001
8 years, 6 months ago (2012-06-15 17:03:58 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/10546140/26002
8 years, 6 months ago (2012-06-15 20:09:07 UTC) #13
commit-bot: I haz the power
Change committed as 142482
8 years, 6 months ago (2012-06-15 21:34:52 UTC) #14
scottmg
On 2012/06/15 21:34:52, I haz the power (commit-bot) wrote: > Change committed as 142482 I ...
8 years, 6 months ago (2012-06-15 22:19:59 UTC) #15
scottmg
8 years, 6 months ago (2012-06-15 22:22:59 UTC) #16
On 2012/06/15 22:19:59, scottmg wrote:
> On 2012/06/15 21:34:52, I haz the power (commit-bot) wrote:
> > Change committed as 142482
> 
> I think this breaks disable_nacl=1 (because there's no targets in
> base_untrusted.gyp anymore maybe?). Do we have a standard way to avoid that
> problem?

It looks like adding an empty target is enough? 
https://chromiumcodereview.appspot.com/10565014

Powered by Google App Engine
This is Rietveld 408576698