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

Unified Diff: ppapi/nacl_irt/irt_start.cc

Issue 2484943004: Remove unused parts of IPC::ChannelHandle. (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « ipc/ipc_message_utils_unittest.cc ('k') | ppapi/proxy/ppapi_proxy_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/nacl_irt/irt_start.cc
diff --git a/ppapi/nacl_irt/irt_start.cc b/ppapi/nacl_irt/irt_start.cc
index d25a6ab5eb1f428ba5464fa320f5d9b8dbb38244..cce1c1d33bfb8759c25b28543771bfd13ef2f5b5 100644
--- a/ppapi/nacl_irt/irt_start.cc
+++ b/ppapi/nacl_irt/irt_start.cc
@@ -18,9 +18,8 @@
#include "ppapi/nacl_irt/plugin_startup.h"
namespace {
-IPC::ChannelHandle MakeIPCHandle(const char* name, int fd) {
- return IPC::ChannelHandle(name,
- base::FileDescriptor(fd, false /* auto_close */));
+IPC::ChannelHandle MakeIPCHandle(int fd) {
+ return IPC::ChannelHandle(base::FileDescriptor(fd, false /* auto_close */));
}
} // namespace
@@ -32,10 +31,9 @@ void nacl_irt_start(uint32_t* info) {
// In SFI mode, the FDs of IPC channels are NACL_CHROME_DESC_BASE and its
// successor, which is set in nacl_listener.cc.
- ppapi::SetIPCChannelHandles(
- MakeIPCHandle("NaCl Browser", NACL_CHROME_DESC_BASE),
- MakeIPCHandle("NaCl Renderer", NACL_CHROME_DESC_BASE + 1),
- MakeIPCHandle("NaCl Manifest", NACL_CHROME_DESC_BASE + 2));
+ ppapi::SetIPCChannelHandles(MakeIPCHandle(NACL_CHROME_DESC_BASE),
+ MakeIPCHandle(NACL_CHROME_DESC_BASE + 1),
+ MakeIPCHandle(NACL_CHROME_DESC_BASE + 2));
// The Mojo EDK must be initialized before using IPC.
mojo::edk::Init();
ppapi::StartUpPlugin();
« no previous file with comments | « ipc/ipc_message_utils_unittest.cc ('k') | ppapi/proxy/ppapi_proxy_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698