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

Unified Diff: ppapi/nacl_irt/irt_pnacl_translator_link.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 | « ppapi/nacl_irt/irt_pnacl_translator_compile.cc ('k') | ppapi/nacl_irt/irt_ppapi.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_link.cc
diff --git a/ppapi/nacl_irt/irt_pnacl_translator_link.cc b/ppapi/nacl_irt/irt_pnacl_translator_link.cc
index dc88a7a24949a07d9e77d01824af3b2ee04c6fb1..e2e35410f1996dbaae6dd9da911501956395805c 100644
--- a/ppapi/nacl_irt/irt_pnacl_translator_link.cc
+++ b/ppapi/nacl_irt/irt_pnacl_translator_link.cc
@@ -71,9 +71,7 @@ class TranslatorLinkListener : public IPC::Listener {
void ServeLinkRequest(CallbackFunc func) {
base::MessageLoop loop;
- int fd = ppapi::GetRendererIPCFileDescriptor();
- IPC::ChannelHandle handle("NaCl IPC", base::FileDescriptor(fd, false));
- new TranslatorLinkListener(handle, func);
+ new TranslatorLinkListener(ppapi::GetRendererIPCChannelHandle(), func);
loop.Run();
}
« no previous file with comments | « ppapi/nacl_irt/irt_pnacl_translator_compile.cc ('k') | ppapi/nacl_irt/irt_ppapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698