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

Unified Diff: ppapi/nacl_irt/irt_pnacl_translator_compile.cc

Issue 2148633002: Pass around IPC::ChannelHandles instead of raw fds in the NaCl IRT. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. 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/nonsfi/nonsfi_listener.cc ('k') | ppapi/nacl_irt/irt_pnacl_translator_link.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/nacl_irt/irt_pnacl_translator_compile.cc
diff --git a/ppapi/nacl_irt/irt_pnacl_translator_compile.cc b/ppapi/nacl_irt/irt_pnacl_translator_compile.cc
index a79dd959277272311c9f0f83a15d78b007096d12..5a339f154556cd2a5617cbefe0b72c9a4b233618 100644
--- a/ppapi/nacl_irt/irt_pnacl_translator_compile.cc
+++ b/ppapi/nacl_irt/irt_pnacl_translator_compile.cc
@@ -100,9 +100,7 @@ class TranslatorCompileListener : public IPC::Listener {
void ServeTranslateRequest(const struct nacl_irt_pnacl_compile_funcs* funcs) {
base::MessageLoop loop;
- int fd = ppapi::GetRendererIPCFileDescriptor();
- IPC::ChannelHandle handle("NaCl IPC", base::FileDescriptor(fd, false));
- new TranslatorCompileListener(handle, funcs);
+ new TranslatorCompileListener(ppapi::GetRendererIPCChannelHandle(), funcs);
loop.Run();
}
« no previous file with comments | « components/nacl/loader/nonsfi/nonsfi_listener.cc ('k') | ppapi/nacl_irt/irt_pnacl_translator_link.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698