Index: components/nacl/renderer/ppb_nacl_private_impl.cc |
diff --git a/components/nacl/renderer/ppb_nacl_private_impl.cc b/components/nacl/renderer/ppb_nacl_private_impl.cc |
index c11b63ffc2f8952b305a7748eace7a66e4b14b2a..98d16f3ac85e6b2b096d3b685a50b52a4df1340d 100644 |
--- a/components/nacl/renderer/ppb_nacl_private_impl.cc |
+++ b/components/nacl/renderer/ppb_nacl_private_impl.cc |
@@ -194,17 +194,8 @@ int GetRoutingID(PP_Instance instance) { |
// Returns whether the channel_handle is valid or not. |
bool IsValidChannelHandle(const IPC::ChannelHandle& channel_handle) { |
- if (channel_handle.name.empty()) { |
- return false; |
- } |
- |
-#if defined(OS_POSIX) |
- if (channel_handle.socket.fd == -1) { |
- return false; |
- } |
-#endif |
- |
- return true; |
+ DCHECK(channel_handle.mojo_handle.is_valid()); |
+ return channel_handle.mojo_handle.is_valid(); |
} |
void PostPPCompletionCallback(PP_CompletionCallback callback, |