Chromium Code Reviews| Index: components/nacl/loader/nacl_ipc_adapter.cc |
| diff --git a/components/nacl/loader/nacl_ipc_adapter.cc b/components/nacl/loader/nacl_ipc_adapter.cc |
| index 3843572dd9ec26594af859f4dbd9f307c5cab7ce..dfd0efc3a4ffc48593d22a706103487603af47eb 100644 |
| --- a/components/nacl/loader/nacl_ipc_adapter.cc |
| +++ b/components/nacl/loader/nacl_ipc_adapter.cc |
| @@ -506,25 +506,7 @@ bool NaClIPCAdapter::OnMessageReceived(const IPC::Message& msg) { |
| break; |
| } |
| case ppapi::proxy::SerializedHandle::CHANNEL_HANDLE: { |
| - // Check that this came from a PpapiMsg_CreateNaClChannel message. |
| - // This code here is only appropriate for that message. |
| - DCHECK(msg.type() == PpapiMsg_CreateNaClChannel::ID); |
| - IPC::ChannelHandle channel_handle = |
| - IPC::Channel::GenerateVerifiedChannelID("nacl"); |
| - scoped_refptr<NaClIPCAdapter> ipc_adapter( |
| - new NaClIPCAdapter(channel_handle, task_runner_.get())); |
| - ipc_adapter->ConnectChannel(); |
| -#if defined(OS_POSIX) |
| - channel_handle.socket = base::FileDescriptor( |
| - ipc_adapter->TakeClientFileDescriptor(), true); |
| -#endif |
| - nacl_desc.reset(new NaClDescWrapper(ipc_adapter->MakeNaClDesc())); |
| - // Send back a message that the channel was created. |
| - scoped_ptr<IPC::Message> response( |
| - new PpapiHostMsg_NaClChannelCreated(channel_handle)); |
|
Mark Seaborn
2014/02/03 22:59:07
Also remove the definition of PpapiHostMsg_NaClCha
|
| - task_runner_->PostTask(FROM_HERE, |
| - base::Bind(&NaClIPCAdapter::SendMessageOnIOThread, this, |
| - base::Passed(&response))); |
| + LOG(FATAL) << "Unexpected CreateNaClChannel"; |
| break; |
| } |
| case ppapi::proxy::SerializedHandle::FILE: { |