| Index: ipc/ipc_channel_posix.cc
|
| diff --git a/ipc/ipc_channel_posix.cc b/ipc/ipc_channel_posix.cc
|
| index 7c03f44f13fe5228cb6238bba09374920f07421d..9d0b81a6302378e5908f61d368fbf6ed1089417d 100644
|
| --- a/ipc/ipc_channel_posix.cc
|
| +++ b/ipc/ipc_channel_posix.cc
|
| @@ -298,9 +298,8 @@ Channel::ChannelImpl::ChannelImpl(const IPC::ChannelHandle& channel_handle,
|
| : mode_(mode),
|
| is_blocked_on_write_(false),
|
| message_send_bytes_written_(0),
|
| - uses_fifo_(
|
| - CommandLine::ForCurrentProcess()->HasSwitch(switches::kIPCUseFIFO) ||
|
| - mode == MODE_NAMED_SERVER || mode == MODE_NAMED_CLIENT),
|
| + uses_fifo_(CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kIPCUseFIFO)),
|
| server_listen_pipe_(-1),
|
| pipe_(-1),
|
| client_pipe_(-1),
|
| @@ -311,11 +310,6 @@ Channel::ChannelImpl::ChannelImpl(const IPC::ChannelHandle& channel_handle,
|
| listener_(listener),
|
| waiting_connect_(true),
|
| factory_(this) {
|
| - if (mode_ == MODE_NAMED_SERVER)
|
| - mode_ = MODE_SERVER;
|
| - if (mode_ == MODE_NAMED_CLIENT)
|
| - mode_ = MODE_CLIENT;
|
| -
|
| if (!CreatePipe(channel_handle, mode_)) {
|
| // The pipe may have been closed already.
|
| LOG(WARNING) << "Unable to create pipe named \"" << channel_handle.name
|
|
|