| Index: ipc/ipc_channel_proxy.cc
|
| diff --git a/ipc/ipc_channel_proxy.cc b/ipc/ipc_channel_proxy.cc
|
| index dc990c26184ab3c6d8d9aaaee9a6c9ef0acffeba..fa4d69eba099e10d143b94e621d66439fb51f31c 100644
|
| --- a/ipc/ipc_channel_proxy.cc
|
| +++ b/ipc/ipc_channel_proxy.cc
|
| @@ -376,16 +376,22 @@ void ChannelProxy::ClearIPCMessageLoop() {
|
| #if defined(OS_POSIX) && !defined(OS_NACL)
|
| // See the TODO regarding lazy initialization of the channel in
|
| // ChannelProxy::Init().
|
| -// We assume that IPC::Channel::GetClientFileDescriptorMapping() is thread-safe.
|
| -int ChannelProxy::GetClientFileDescriptor() const {
|
| - Channel *channel = context_.get()->channel_.get();
|
| +int ChannelProxy::GetClientFileDescriptor() {
|
| + Channel* channel = context_.get()->channel_.get();
|
| // Channel must have been created first.
|
| DCHECK(channel) << context_.get()->channel_id_;
|
| return channel->GetClientFileDescriptor();
|
| }
|
|
|
| +int ChannelProxy::TakeClientFileDescriptor() {
|
| + Channel* channel = context_.get()->channel_.get();
|
| + // Channel must have been created first.
|
| + DCHECK(channel) << context_.get()->channel_id_;
|
| + return channel->TakeClientFileDescriptor();
|
| +}
|
| +
|
| bool ChannelProxy::GetClientEuid(uid_t* client_euid) const {
|
| - Channel *channel = context_.get()->channel_.get();
|
| + Channel* channel = context_.get()->channel_.get();
|
| // Channel must have been created first.
|
| DCHECK(channel) << context_.get()->channel_id_;
|
| return channel->GetClientEuid(client_euid);
|
|
|