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

Issue 10214007: Add an IPC channel between the NaCl loader process and the renderer. (Closed)

Created:
8 years, 8 months ago by bbudge
Modified:
8 years, 6 months ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com, jam, yzshen+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org, bradn_chromium.org
Visibility:
Public.

Description

Add an IPC channel between the NaCl loader process and the renderer. BUG=116317 TEST=manual

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Patch Set 5 : Add an IPC channel between the NaCl loader process and the renderer. #

Patch Set 6 : #

Total comments: 9

Patch Set 7 : #

Total comments: 6

Patch Set 8 : #

Patch Set 9 : #

Total comments: 19

Patch Set 10 : #

Total comments: 2

Patch Set 11 : #

Patch Set 12 : #

Total comments: 5

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Total comments: 34

Patch Set 18 : #

Total comments: 9

Patch Set 19 : #

Patch Set 20 : #

Total comments: 13

Patch Set 21 : #

Patch Set 22 : #

Total comments: 4

Patch Set 23 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -37 lines) Patch
M chrome/browser/nacl_host/nacl_process_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/nacl_host/nacl_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +20 lines, -3 lines 0 comments Download
M chrome/common/nacl_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/common/nacl_types.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/nacl/nacl_ipc_adapter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/nacl/nacl_ipc_adapter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/nacl/nacl_listener.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +26 lines, -1 line 0 comments Download
M chrome/renderer/pepper/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +177 lines, -7 lines 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +8 lines, -4 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/nacl_entry_points.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +2 lines, -4 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +36 lines, -2 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/sel_ldr_launcher_chrome.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +3 lines, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/sel_ldr_launcher_chrome.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +6 lines, -3 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +4 lines, -2 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +6 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +3 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +13 lines, -3 lines 0 comments Download

Messages

Total messages: 55 (0 generated)
bbudge
This is just work in progress. It opens an IPC::Channel in the sel_ldr process given ...
8 years, 8 months ago (2012-04-25 00:28:05 UTC) #1
Mark Seaborn
http://codereview.chromium.org/10214007/diff/1/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): http://codereview.chromium.org/10214007/diff/1/chrome/browser/nacl_host/nacl_process_host.cc#newcode412 chrome/browser/nacl_host/nacl_process_host.cc:412: std::string channel_name; This doesn't need to go in NaClInternal. ...
8 years, 8 months ago (2012-04-25 00:40:39 UTC) #2
bbudge
http://codereview.chromium.org/10214007/diff/1/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): http://codereview.chromium.org/10214007/diff/1/chrome/browser/nacl_host/nacl_process_host.cc#newcode412 chrome/browser/nacl_host/nacl_process_host.cc:412: std::string channel_name; Yes, I'll remove it from this struct. ...
8 years, 8 months ago (2012-04-25 00:50:04 UTC) #3
Mark Seaborn
On 24 April 2012 17:50, <bbudge@chromium.org> wrote: > http://codereview.chromium.**org/10214007/diff/1/chrome/** > browser/nacl_host/nacl_**process_host.cc#newcode521<http://codereview.chromium.org/10214007/diff/1/chrome/browser/nacl_host/nacl_process_host.cc#newcode521> > chrome/browser/nacl_host/nacl_**process_host.cc:521: > IPC::Channel::**GenerateVerifiedChannelID(std:**:string()); ...
8 years, 8 months ago (2012-04-25 00:57:39 UTC) #4
Mark Seaborn
On 24 April 2012 17:50, <bbudge@chromium.org> wrote: > http://codereview.chromium.**org/10214007/diff/1/chrome/** > browser/nacl_host/nacl_**process_host.cc#newcode521<http://codereview.chromium.org/10214007/diff/1/chrome/browser/nacl_host/nacl_process_host.cc#newcode521> > chrome/browser/nacl_host/nacl_**process_host.cc:521: > IPC::Channel::**GenerateVerifiedChannelID(std:**:string()); ...
8 years, 8 months ago (2012-04-25 00:57:40 UTC) #5
bbudge
> > If the pipe name matters, it's probably the Windows sandbox restricting > what ...
8 years, 8 months ago (2012-04-25 01:03:31 UTC) #6
dmichael (off chromium)
https://chromiumcodereview.appspot.com/10214007/diff/1/chrome/nacl/nacl_listener.cc File chrome/nacl/nacl_listener.cc (right): https://chromiumcodereview.appspot.com/10214007/diff/1/chrome/nacl/nacl_listener.cc#newcode186 chrome/nacl/nacl_listener.cc:186: ipc_channel->Init(params.channel_name, IPC::Channel::MODE_SERVER, true); You're not doing anything with ipc_channel ...
8 years, 8 months ago (2012-04-25 21:06:00 UTC) #7
bbudge
Yep, that'll be next. This update gets the channel name into the renderer where I ...
8 years, 8 months ago (2012-04-25 23:52:58 UTC) #8
bbudge
8 years, 8 months ago (2012-04-25 23:53:02 UTC) #9
bbudge
On 2012/04/25 23:53:02, bbudge1 wrote: I'm thinking of changing the way I report back to ...
8 years, 8 months ago (2012-04-26 01:22:01 UTC) #10
bbudge
This patch adds the renderer side setup. If everything is working, both sides of the ...
8 years, 8 months ago (2012-04-26 22:58:24 UTC) #11
dmichael (off chromium)
Since I'm still learning the architecture of all this, my opinion shouldn't count for much. ...
8 years, 8 months ago (2012-04-27 17:14:36 UTC) #12
bbudge
http://codereview.chromium.org/10214007/diff/23001/content/public/renderer/render_view.h File content/public/renderer/render_view.h (right): http://codereview.chromium.org/10214007/diff/23001/content/public/renderer/render_view.h#newcode135 content/public/renderer/render_view.h:135: virtual void CreateHostDispatcher( On 2012/04/27 17:14:36, dmichael wrote: > ...
8 years, 8 months ago (2012-04-27 17:46:56 UTC) #13
bbudge
This update adds a notification event from the NaCl process (sel_ldr) that the server side ...
8 years, 8 months ago (2012-04-27 23:53:37 UTC) #14
bbudge
Refresh patch after 10180015: http://codereview.chromium.org/10180015/
8 years, 7 months ago (2012-04-30 17:21:42 UTC) #15
bbudge
Modify this to conform to Mark's latest changes, and to start the proxy after the ...
8 years, 7 months ago (2012-05-02 23:45:02 UTC) #16
dmichael (off chromium)
https://chromiumcodereview.appspot.com/10214007/diff/52002/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://chromiumcodereview.appspot.com/10214007/diff/52002/chrome/browser/nacl_host/nacl_process_host.cc#newcode941 chrome/browser/nacl_host/nacl_process_host.cc:941: const ChildProcessData& data = process_->GetData(); Why did you move ...
8 years, 7 months ago (2012-05-04 22:51:42 UTC) #17
bbudge
Replaced IPC::Channel in sel_ldr process with Brett's NaClIPCManager. I still need to connect the NaClIPCAdapters ...
8 years, 7 months ago (2012-05-07 18:08:52 UTC) #18
dmichael (off chromium)
https://chromiumcodereview.appspot.com/10214007/diff/74005/chrome/nacl/nacl_ipc_adapter.cc File chrome/nacl/nacl_ipc_adapter.cc (right): https://chromiumcodereview.appspot.com/10214007/diff/74005/chrome/nacl/nacl_ipc_adapter.cc#newcode122 chrome/nacl/nacl_ipc_adapter.cc:122: DCHECK(io_thread_data_.channel_->Connect()); You don't want to do this inside DCHECK, ...
8 years, 7 months ago (2012-05-07 20:30:19 UTC) #19
bbudge
Moved some files into a separate CL for NaClIPCManager/Adapter. http://codereview.chromium.org/10214007/diff/74005/chrome/nacl/nacl_ipc_adapter.cc File chrome/nacl/nacl_ipc_adapter.cc (right): http://codereview.chromium.org/10214007/diff/74005/chrome/nacl/nacl_ipc_adapter.cc#newcode122 chrome/nacl/nacl_ipc_adapter.cc:122: ...
8 years, 7 months ago (2012-05-07 21:39:17 UTC) #20
bbudge
Added runtime flag to enable IPC Proxy code.
8 years, 7 months ago (2012-05-09 18:29:34 UTC) #21
dmichael (off chromium)
https://chromiumcodereview.appspot.com/10214007/diff/83003/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://chromiumcodereview.appspot.com/10214007/diff/83003/chrome/browser/nacl_host/nacl_process_host.cc#newcode841 chrome/browser/nacl_host/nacl_process_host.cc:841: switches::kEnableNaClIPCProxy)) { I think you forgot to add the ...
8 years, 7 months ago (2012-05-10 19:38:58 UTC) #22
bbudge
Some tweaks and responses to dmichael's comments. Still not ready to land. http://codereview.chromium.org/10214007/diff/83003/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc ...
8 years, 7 months ago (2012-05-11 01:21:16 UTC) #23
Mark Seaborn
FYI https://chromiumcodereview.appspot.com/10214007/diff/69032/chrome/nacl/nacl_listener.cc File chrome/nacl/nacl_listener.cc (right): https://chromiumcodereview.appspot.com/10214007/diff/69032/chrome/nacl/nacl_listener.cc#newcode206 chrome/nacl/nacl_listener.cc:206: switches::kEnableNaClIPCProxy)) { There are two problems with this ...
8 years, 7 months ago (2012-05-11 22:45:30 UTC) #24
bbudge
Updated to changes made by jschuh (process handles removed), dmichael (NaClIPCManager removed), and brettw. Added ...
8 years, 7 months ago (2012-05-15 15:41:56 UTC) #25
bbudge
http://codereview.chromium.org/10214007/diff/69032/chrome/nacl/nacl_listener.cc File chrome/nacl/nacl_listener.cc (right): http://codereview.chromium.org/10214007/diff/69032/chrome/nacl/nacl_listener.cc#newcode206 chrome/nacl/nacl_listener.cc:206: switches::kEnableNaClIPCProxy)) { Changed to use a bool sent from ...
8 years, 7 months ago (2012-05-15 15:44:01 UTC) #26
bbudge
8 years, 7 months ago (2012-05-18 00:04:30 UTC) #27
dmichael (off chromium)
http://codereview.chromium.org/10214007/diff/79076/chrome/renderer/pepper/ppb_nacl_private_impl.cc File chrome/renderer/pepper/ppb_nacl_private_impl.cc (right): http://codereview.chromium.org/10214007/diff/79076/chrome/renderer/pepper/ppb_nacl_private_impl.cc#newcode166 chrome/renderer/pepper/ppb_nacl_private_impl.cc:166: virtual const void* GetProxiedInterface(const char* name) { OVERRIDE for ...
8 years, 7 months ago (2012-05-23 00:41:03 UTC) #28
dmichael (off chromium)
http://codereview.chromium.org/10214007/diff/79076/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): http://codereview.chromium.org/10214007/diff/79076/chrome/browser/nacl_host/nacl_process_host.cc#newcode603 chrome/browser/nacl_host/nacl_process_host.cc:603: I think you need to set params.enable_ipc_proxy here. This ...
8 years, 7 months ago (2012-05-23 21:24:12 UTC) #29
bbudge
Refresh, fix flag passing in NaClProcessHost, install IPC fd in NaClListener. IPC should make it ...
8 years, 7 months ago (2012-05-23 21:42:19 UTC) #30
bbudge
This is finally ready for review. PTAL To start up the IPC proxy, start Chrome ...
8 years, 6 months ago (2012-06-19 23:53:57 UTC) #31
bbudge
Missed a file.
8 years, 6 months ago (2012-06-20 00:06:52 UTC) #32
bbudge
Mark for nacl_process_host and nacl_listener. Brett for renderer side. David plugin?
8 years, 6 months ago (2012-06-20 00:07:51 UTC) #33
Mark Seaborn
http://codereview.chromium.org/10214007/diff/121014/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (left): http://codereview.chromium.org/10214007/diff/121014/chrome/browser/nacl_host/nacl_process_host.cc#oldcode559 chrome/browser/nacl_host/nacl_process_host.cc:559: bool NaClProcessHost::ReplyToRenderer() { Why do you need to merge ...
8 years, 6 months ago (2012-06-20 19:24:39 UTC) #34
dmichael (off chromium)
http://codereview.chromium.org/10214007/diff/121014/chrome/renderer/pepper/ppb_nacl_private_impl.cc File chrome/renderer/pepper/ppb_nacl_private_impl.cc (right): http://codereview.chromium.org/10214007/diff/121014/chrome/renderer/pepper/ppb_nacl_private_impl.cc#newcode93 chrome/renderer/pepper/ppb_nacl_private_impl.cc:93: : shutdown_event_(true, false) {} style nit: I'd put } ...
8 years, 6 months ago (2012-06-20 22:34:31 UTC) #35
bbudge
Added webkit::ppapi::PluginModule for change suggested by David. This change also includes a fix to shutdown ...
8 years, 6 months ago (2012-06-21 00:00:46 UTC) #36
bbudge
cc'ing Brad Nelson
8 years, 6 months ago (2012-06-21 00:03:27 UTC) #37
bbudge
really cc'ing Brad this time.
8 years, 6 months ago (2012-06-21 00:04:09 UTC) #38
bbudge
Add an IPC channel between the NaCl loader process and the renderer. BUG=116317 TEST=manual
8 years, 6 months ago (2012-06-21 10:18:16 UTC) #39
bbudge
Fix issue with PP_Instance - ChannelHandle map, needed to add an #include.
8 years, 6 months ago (2012-06-21 13:23:02 UTC) #40
Mark Seaborn
http://codereview.chromium.org/10214007/diff/121014/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (left): http://codereview.chromium.org/10214007/diff/121014/chrome/browser/nacl_host/nacl_process_host.cc#oldcode559 chrome/browser/nacl_host/nacl_process_host.cc:559: bool NaClProcessHost::ReplyToRenderer() { On 2012/06/21 00:00:46, bbudge1 wrote: > ...
8 years, 6 months ago (2012-06-21 15:30:03 UTC) #41
bbudge
More comments addressed. PTAL http://codereview.chromium.org/10214007/diff/121014/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (left): http://codereview.chromium.org/10214007/diff/121014/chrome/browser/nacl_host/nacl_process_host.cc#oldcode559 chrome/browser/nacl_host/nacl_process_host.cc:559: bool NaClProcessHost::ReplyToRenderer() { On 2012/06/21 ...
8 years, 6 months ago (2012-06-21 18:16:53 UTC) #42
dmichael (off chromium)
http://codereview.chromium.org/10214007/diff/143003/chrome/renderer/pepper/ppb_nacl_private_impl.cc File chrome/renderer/pepper/ppb_nacl_private_impl.cc (right): http://codereview.chromium.org/10214007/diff/143003/chrome/renderer/pepper/ppb_nacl_private_impl.cc#newcode70 chrome/renderer/pepper/ppb_nacl_private_impl.cc:70: g_channel_handle_map.Get()[instance] = channel_handle; optional: This will over-write the instance ...
8 years, 6 months ago (2012-06-21 18:18:16 UTC) #43
bbudge
Eliminated global map in ppb_nacl_private_impl.cc as per Mark's suggestion. While this affected another handful of ...
8 years, 6 months ago (2012-06-21 19:28:17 UTC) #44
dmichael (off chromium)
http://codereview.chromium.org/10214007/diff/143003/webkit/plugins/ppapi/plugin_module.cc File webkit/plugins/ppapi/plugin_module.cc (right): http://codereview.chromium.org/10214007/diff/143003/webkit/plugins/ppapi/plugin_module.cc#newcode595 webkit/plugins/ppapi/plugin_module.cc:595: DCHECK(!reserve_instance_id_) << "Only expect one set."; On 2012/06/21 19:28:18, ...
8 years, 6 months ago (2012-06-21 19:42:29 UTC) #45
Mark Seaborn
LGTM from my point of view http://codereview.chromium.org/10214007/diff/151008/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): http://codereview.chromium.org/10214007/diff/151008/chrome/browser/nacl_host/nacl_process_host.cc#newcode150 chrome/browser/nacl_host/nacl_process_host.cc:150: CommandLine::ForCurrentProcess()->HasSwitch( Nit: this ...
8 years, 6 months ago (2012-06-21 19:49:49 UTC) #46
brettw
lgtm http://codereview.chromium.org/10214007/diff/151008/chrome/common/render_messages.h File chrome/common/render_messages.h (right): http://codereview.chromium.org/10214007/diff/151008/chrome/common/render_messages.h#newcode489 chrome/common/render_messages.h:489: // the process and return a handle to ...
8 years, 6 months ago (2012-06-21 20:59:43 UTC) #47
dmichael (off chromium)
lgtm, once you remove the bad DCHECK in plugin_module.cc
8 years, 6 months ago (2012-06-21 21:09:35 UTC) #48
bbudge
OK, addressed all comments. http://codereview.chromium.org/10214007/diff/151008/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): http://codereview.chromium.org/10214007/diff/151008/chrome/browser/nacl_host/nacl_process_host.cc#newcode150 chrome/browser/nacl_host/nacl_process_host.cc:150: CommandLine::ForCurrentProcess()->HasSwitch( On 2012/06/21 19:49:49, Mark ...
8 years, 6 months ago (2012-06-21 21:20:01 UTC) #49
bbudge
On 2012/06/21 21:09:35, dmichael wrote: > lgtm, once you remove the bad DCHECK in plugin_module.cc ...
8 years, 6 months ago (2012-06-21 21:28:30 UTC) #50
bbudge
Backed out change to shutdown event in ppb_nacl_private_impl. Added a TODO to expose it in ...
8 years, 6 months ago (2012-06-21 21:56:32 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/10214007/144024
8 years, 6 months ago (2012-06-21 22:47:21 UTC) #52
commit-bot: I haz the power
Presubmit check for 10214007-144024 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 6 months ago (2012-06-21 22:47:35 UTC) #53
Mark Seaborn
Things I spotted while looking for the problem that caused the bot failure... https://chromiumcodereview.appspot.com/10214007/diff/144024/ppapi/native_client/src/trusted/plugin/plugin.cc File ...
8 years, 6 months ago (2012-06-22 01:09:17 UTC) #54
bbudge
8 years, 6 months ago (2012-06-22 01:32:50 UTC) #55
On 2012/06/22 01:09:17, Mark Seaborn wrote:
> Things I spotted while looking for the problem that caused the bot failure...
> 
>
https://chromiumcodereview.appspot.com/10214007/diff/144024/ppapi/native_clie...
> File ppapi/native_client/src/trusted/plugin/plugin.cc (right):
> 
>
https://chromiumcodereview.appspot.com/10214007/diff/144024/ppapi/native_clie...
> ppapi/native_client/src/trusted/plugin/plugin.cc:125: const PPB_NaCl_Private*
> GetNaclInterface() {
> Nit: Should be "GetNaClInterface"
> 
>
https://chromiumcodereview.appspot.com/10214007/diff/144024/ppapi/native_clie...
> ppapi/native_client/src/trusted/plugin/plugin.cc:126: pp::Module *module =
> pp::Module::Get();
> Nit: Should be "* " here.
> 
>
https://chromiumcodereview.appspot.com/10214007/diff/144024/ppapi/native_clie...
> ppapi/native_client/src/trusted/plugin/plugin.cc:620: nacl::scoped_ptr<char>
> ipc_channel_handle_ptr(
> Storing a ChannelHandle as a nacl::scoped_ptr<char> seems like a bad idea. 
> You'd still be leaking a handle/FD or other std::string internals on error. 
It
> would be better not to try to free it here, and if there's a leak, comment it
> with a TODO.
> 
>
https://chromiumcodereview.appspot.com/10214007/diff/144024/ppapi/native_clie...
> ppapi/native_client/src/trusted/plugin/plugin.cc:630: if
> (ppb_nacl->StartPpapiProxy(
> Thinking about this more, if StartPpapiProxy() is called immediate after
> Start(), why not fold it into the LaunchSelLdr() function?  You can make
> LaunchSelLdr() return a result indicating whether we're using the new proxy.

I like your idea of merging the calls to LaunchSelLdr and StartPpapiProxy. This
will work as things stand now.

Powered by Google App Engine
This is Rietveld 408576698