Index: ipc/mojo/ipc_message_pipe_reader.cc |
diff --git a/ipc/mojo/ipc_message_pipe_reader.cc b/ipc/mojo/ipc_message_pipe_reader.cc |
index 61b36f6f384531dd68e0d7358f59889e5dca00d0..13bfbed6ad300b6dd0325c514d36f3560aaec98f 100644 |
--- a/ipc/mojo/ipc_message_pipe_reader.cc |
+++ b/ipc/mojo/ipc_message_pipe_reader.cc |
@@ -45,9 +45,7 @@ bool MessagePipeReader::Send(scoped_ptr<Message> message) { |
message->TraceMessageBegin(); |
std::vector<MojoHandle> handles; |
MojoResult result = MOJO_RESULT_OK; |
-#if defined(OS_POSIX) && !defined(OS_NACL) |
result = ChannelMojo::ReadFromMessageAttachmentSet(message.get(), &handles); |
-#endif |
if (result == MOJO_RESULT_OK) { |
result = MojoWriteMessage(handle(), |
message->data(), |
@@ -72,16 +70,12 @@ void MessagePipeReader::OnMessageReceived() { |
std::vector<MojoHandle> handle_buffer; |
TakeHandleBuffer(&handle_buffer); |
-#if defined(OS_POSIX) && !defined(OS_NACL) |
MojoResult write_result = |
ChannelMojo::WriteToMessageAttachmentSet(handle_buffer, &message); |
if (write_result != MOJO_RESULT_OK) { |
CloseWithError(write_result); |
return; |
} |
-#else |
- DCHECK(handle_buffer.empty()); |
-#endif |
message.TraceMessageEnd(); |
delegate_->OnMessageReceived(message); |