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

Unified Diff: components/nacl/loader/nonsfi/nonsfi_listener.cc

Issue 2151153002: Use ChannelMojo for NaCl IRT channels in non-sfi mode. Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-nacl-channel-mojo
Patch Set: rebase Created 4 years, 5 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
« no previous file with comments | « components/nacl/loader/nacl_listener.cc ('k') | components/nacl/renderer/ppb_nacl_private_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nonsfi/nonsfi_listener.cc
diff --git a/components/nacl/loader/nonsfi/nonsfi_listener.cc b/components/nacl/loader/nonsfi/nonsfi_listener.cc
index d85e181ad9674857ccdc37ba4973bb9fcb4d4575..6b973f33da164e2a6224be56accf2ab146f1e64f 100644
--- a/components/nacl/loader/nonsfi/nonsfi_listener.cc
+++ b/components/nacl/loader/nonsfi/nonsfi_listener.cc
@@ -106,10 +106,10 @@ void NonSfiListener::OnStart(const nacl::NaClStartParams& params) {
// plugin's main thread. We just pass the FDs to plugin side.
// The FDs are created in the browser process. Following check can fail
// if the preparation for sending NaClProcessMsg_Start were incomplete.
- CHECK_NE(params.ppapi_browser_channel_handle.socket.fd, -1);
- CHECK_NE(params.ppapi_renderer_channel_handle.socket.fd, -1);
- CHECK_NE(params.trusted_service_channel_handle.socket.fd, -1);
- CHECK_NE(params.manifest_service_channel_handle.socket.fd, -1);
+ CHECK(params.ppapi_browser_channel_handle.mojo_handle.is_valid());
+ CHECK(params.ppapi_renderer_channel_handle.mojo_handle.is_valid());
+ CHECK(params.trusted_service_channel_handle.mojo_handle.is_valid());
+ CHECK(params.manifest_service_channel_handle.mojo_handle.is_valid());
ppapi::SetIPCChannelHandles(
params.ppapi_browser_channel_handle,
« no previous file with comments | « components/nacl/loader/nacl_listener.cc ('k') | components/nacl/renderer/ppb_nacl_private_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698