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 1aebef90c6a407c3bb5a622f67d8335daf710abe..75b58eff2f1c8a8cc44eeaf4f21ec300f88b88b3 100644 |
--- a/content/renderer/pepper/host_dispatcher_wrapper.cc |
+++ b/content/renderer/pepper/host_dispatcher_wrapper.cc |
@@ -37,18 +37,9 @@ 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() && !channel_handle.is_mojo_channel_handle()) |
+ if (!channel_handle.is_mojo_channel_handle()) |
return false; |
-#if defined(OS_POSIX) |
- DCHECK(channel_handle.socket.fd != -1 || |
- channel_handle.is_mojo_channel_handle()); |
- if (channel_handle.socket.fd == -1 && |
- !channel_handle.is_mojo_channel_handle()) { |
- return false; |
- } |
-#endif |
- |
dispatcher_delegate_.reset(new PepperProxyChannelDelegateImpl); |
dispatcher_.reset(new ppapi::proxy::HostDispatcher( |
module_->pp_module(), local_get_interface, permissions_)); |