| Index: content/renderer/pepper/host_dispatcher_wrapper.cc
|
| diff --git a/content/renderer/pepper/host_dispatcher_wrapper.cc b/content/renderer/pepper/host_dispatcher_wrapper.cc
|
| index 034dadc1260f672e9feaae078898c366b18ab56f..82c3edad344b71e3f5d6c14fe211d9a668822425 100644
|
| --- a/content/renderer/pepper/host_dispatcher_wrapper.cc
|
| +++ b/content/renderer/pepper/host_dispatcher_wrapper.cc
|
| @@ -37,16 +37,10 @@ bool HostDispatcherWrapper::Init(const IPC::ChannelHandle& channel_handle,
|
| PP_GetInterface_Func local_get_interface,
|
| const ppapi::Preferences& preferences,
|
| scoped_refptr<PepperHungPluginFilter> filter) {
|
| - if (channel_handle.name.empty())
|
| + DCHECK(channel_handle.mojo_handle.is_valid());
|
| + if (!channel_handle.mojo_handle.is_valid())
|
| return false;
|
|
|
| -#if defined(OS_POSIX)
|
| - DCHECK(channel_handle.socket.fd != -1 ||
|
| - channel_handle.mojo_handle.is_valid());
|
| - if (channel_handle.socket.fd == -1 && !channel_handle.mojo_handle.is_valid())
|
| - return false;
|
| -#endif
|
| -
|
| dispatcher_delegate_.reset(new PepperProxyChannelDelegateImpl);
|
| dispatcher_.reset(new ppapi::proxy::HostDispatcher(
|
| module_->pp_module(), local_get_interface, permissions_));
|
|
|