| Index: content/common/np_channel_base.cc
|
| diff --git a/content/common/np_channel_base.cc b/content/common/np_channel_base.cc
|
| index 625677fcb82165f9e09dae7dee68f70dddae06d2..509c34102034345a6d372316d8b435c0b0cd3c3e 100644
|
| --- a/content/common/np_channel_base.cc
|
| +++ b/content/common/np_channel_base.cc
|
| @@ -118,10 +118,10 @@ bool NPChannelBase::Init(base::MessageLoopProxy* ipc_message_loop,
|
| bool create_pipe_now,
|
| base::WaitableEvent* shutdown_event) {
|
| #if defined(OS_POSIX)
|
| - // Check the validity of fd for bug investigation. Remove after fixed.
|
| - // See crbug.com/97285 for details.
|
| - if (mode_ == IPC::Channel::MODE_CLIENT)
|
| - CHECK_NE(-1, channel_handle_.socket.fd);
|
| + // Attempting to initialize with an invalid channel handle.
|
| + // See http://crbug.com/97285 for details.
|
| + if (mode_ == IPC::Channel::MODE_CLIENT && -1 == channel_handle_.socket.fd)
|
| + return false;
|
| #endif
|
|
|
| channel_.reset(new IPC::SyncChannel(
|
|
|