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

Unified Diff: ppapi/native_client/src/trusted/plugin/service_runtime.cc

Issue 10039001: NaCl: Supply Windows handle-passing function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix + comment Created 8 years, 8 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/native_client/src/trusted/plugin/module_ppapi.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/trusted/plugin/service_runtime.cc
diff --git a/ppapi/native_client/src/trusted/plugin/service_runtime.cc b/ppapi/native_client/src/trusted/plugin/service_runtime.cc
index af78722b2e4f4a91aaed0af1482824a2111df72c..dc0eee7d37d0ba025d3dc43d0f65695a1cf05a18 100644
--- a/ppapi/native_client/src/trusted/plugin/service_runtime.cc
+++ b/ppapi/native_client/src/trusted/plugin/service_runtime.cc
@@ -595,39 +595,6 @@ bool ServiceRuntime::InitCommunication(nacl::DescWrapper* nacl_desc,
return false;
}
-#if NACL_WINDOWS && !defined(NACL_STANDALONE)
- // Establish the communication for handle passing protocol
- struct NaClDesc* desc = NaClHandlePassBrowserGetSocketAddress();
-
- DWORD my_pid = GetCurrentProcessId();
- nacl::Handle my_handle = GetCurrentProcess();
- nacl::Handle my_handle_in_selldr;
-
- if (!DuplicateHandle(GetCurrentProcess(),
- my_handle,
- subprocess_->child_process(),
- &my_handle_in_selldr,
- PROCESS_DUP_HANDLE,
- FALSE,
- 0)) {
- error_info->SetReport(ERROR_SEL_LDR_HANDLE_PASSING,
- "ServiceRuntime: failed handle passing protocol");
- return false;
- }
-
- rpc_result =
- NaClSrpcInvokeBySignature(&command_channel_,
- "init_handle_passing:hii:",
- desc,
- my_pid,
- reinterpret_cast<int>(my_handle_in_selldr));
-
- if (NACL_SRPC_RESULT_OK != rpc_result) {
- error_info->SetReport(ERROR_SEL_LDR_HANDLE_PASSING,
- "ServiceRuntime: failed handle passing protocol");
- return false;
- }
-#endif
// start the module. otherwise we cannot connect for multimedia
// subsystem since that is handled by user-level code (not secure!)
// in libsrpc.
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/module_ppapi.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698