| Index: ipc/ipc_channel_nacl.cc
|
| diff --git a/ipc/ipc_channel_nacl.cc b/ipc/ipc_channel_nacl.cc
|
| index 704f7d88d4267023e18af0f7c5d71e57405198cb..408e016648d89893d11469c5f94382cfd6ac9ad7 100644
|
| --- a/ipc/ipc_channel_nacl.cc
|
| +++ b/ipc/ipc_channel_nacl.cc
|
| @@ -283,7 +283,7 @@ bool ChannelNacl::ProcessOutgoingMessages() {
|
| int fds[FileDescriptorSet::kMaxDescriptorsPerMessage];
|
| const size_t num_fds = msg->file_descriptor_set()->size();
|
| DCHECK(num_fds <= FileDescriptorSet::kMaxDescriptorsPerMessage);
|
| - msg->file_descriptor_set()->GetDescriptors(fds);
|
| + msg->file_descriptor_set()->PeekDescriptors(fds);
|
|
|
| NaClAbiNaClImcMsgIoVec iov = {
|
| const_cast<void*>(msg->data()), msg->size()
|
| @@ -357,8 +357,8 @@ bool ChannelNacl::WillDispatchInputMessage(Message* msg) {
|
| // The shenaniganery below with &foo.front() requires input_fds_ to have
|
| // contiguous underlying storage (such as a simple array or a std::vector).
|
| // This is why the header warns not to make input_fds_ a deque<>.
|
| - msg->file_descriptor_set()->SetDescriptors(&input_fds_.front(),
|
| - header_fds);
|
| + msg->file_descriptor_set()->AddDescriptorsToOwn(&input_fds_.front(),
|
| + header_fds);
|
| input_fds_.clear();
|
| return true;
|
| }
|
|
|