Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1301)

Unified Diff: components/nacl/renderer/ppb_nacl_private_impl.cc

Issue 2301103003: Use ChannelMojo for NaCl PPAPI channels. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..354b61cd6a1c691083ab920592dcc07f881b4318 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.is_mojo_channel_handle());
+ return channel_handle.is_mojo_channel_handle();
}
void PostPPCompletionCallback(PP_CompletionCallback callback,
« no previous file with comments | « components/nacl/loader/nonsfi/nonsfi_listener.cc ('k') | content/renderer/pepper/host_dispatcher_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698