| Index: chrome/browser/nacl_host/nacl_process_host.cc
|
| ===================================================================
|
| --- chrome/browser/nacl_host/nacl_process_host.cc (revision 143664)
|
| +++ chrome/browser/nacl_host/nacl_process_host.cc (working copy)
|
| @@ -145,9 +145,6 @@
|
| getenv("NACL_UNTRUSTED_EXCEPTION_HANDLING") != NULL) {
|
| enable_exception_handling_ = true;
|
| }
|
| -
|
| - enable_ipc_proxy_ = CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kEnableNaClIPCProxy);
|
| }
|
|
|
| NaClProcessHost::~NaClProcessHost() {
|
| @@ -540,8 +537,6 @@
|
| IPC_MESSAGE_HANDLER_DELAY_REPLY(NaClProcessMsg_AttachDebugExceptionHandler,
|
| OnAttachDebugExceptionHandler)
|
| #endif
|
| - IPC_MESSAGE_HANDLER(NaClProcessHostMsg_PpapiChannelCreated,
|
| - OnPpapiChannelCreated)
|
| IPC_MESSAGE_UNHANDLED(handled = false)
|
| IPC_END_MESSAGE_MAP()
|
| return handled;
|
| @@ -561,8 +556,7 @@
|
| }
|
| }
|
|
|
| -bool NaClProcessHost::ReplyToRenderer(
|
| - const IPC::ChannelHandle& channel_handle) {
|
| +bool NaClProcessHost::ReplyToRenderer() {
|
| std::vector<nacl::FileDescriptor> handles_for_renderer;
|
| for (size_t i = 0; i < internal_->sockets_for_renderer.size(); i++) {
|
| #if defined(OS_WIN)
|
| @@ -606,7 +600,7 @@
|
| #endif
|
|
|
| ChromeViewHostMsg_LaunchNaCl::WriteReplyParams(
|
| - reply_msg_, handles_for_renderer, channel_handle);
|
| + reply_msg_, handles_for_renderer);
|
| chrome_render_message_filter_->Send(reply_msg_);
|
| chrome_render_message_filter_ = NULL;
|
| reply_msg_ = NULL;
|
| @@ -624,7 +618,6 @@
|
| params.enable_exception_handling = enable_exception_handling_;
|
| params.enable_debug_stub =
|
| CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableNaClDebug);
|
| - params.enable_ipc_proxy = enable_ipc_proxy_;
|
|
|
| base::PlatformFile irt_file = nacl_browser->IrtFile();
|
| CHECK_NE(irt_file, base::kInvalidPlatformFileValue);
|
| @@ -672,19 +665,9 @@
|
| }
|
|
|
| bool NaClProcessHost::SendStart() {
|
| - if (!enable_ipc_proxy_) {
|
| - if (!ReplyToRenderer(IPC::ChannelHandle()))
|
| - return false;
|
| - }
|
| - return StartNaClExecution();
|
| + return ReplyToRenderer() && StartNaClExecution();
|
| }
|
|
|
| -void NaClProcessHost::OnPpapiChannelCreated(
|
| - const IPC::ChannelHandle& channel_handle) {
|
| - DCHECK(enable_ipc_proxy_);
|
| - ReplyToRenderer(channel_handle);
|
| -}
|
| -
|
| bool NaClProcessHost::StartWithLaunchedProcess() {
|
| #if defined(OS_LINUX)
|
| if (wait_for_nacl_gdb_) {
|
|
|