Index: components/nacl/loader/nacl_listener.cc |
diff --git a/components/nacl/loader/nacl_listener.cc b/components/nacl/loader/nacl_listener.cc |
index f49e3f3a3676e5e769bf42f20b13932f4880aa5a..e42bcc36504d44f8618ea84ea2b5b31909e6d48a 100644 |
--- a/components/nacl/loader/nacl_listener.cc |
+++ b/components/nacl/loader/nacl_listener.cc |
@@ -109,6 +109,10 @@ int AttachDebugExceptionHandler(const void* info, size_t info_size) { |
return result; |
} |
+void DebugStubPortSelectedHandler(uint16_t port) { |
+ g_listener->Send(new NaClProcessHostMsg_DebugStubPortSelected(port)); |
+} |
+ |
#endif |
// Creates the PPAPI IPC channel between the NaCl IRT and the host |
@@ -458,6 +462,8 @@ void NaClListener::OnStart(const nacl::NaClStartParams& params) { |
#if defined(OS_WIN) |
args->broker_duplicate_handle_func = BrokerDuplicateHandle; |
args->attach_debug_exception_handler_func = AttachDebugExceptionHandler; |
+ args->debug_stub_server_port_selected_handler_func = |
+ DebugStubPortSelectedHandler; |
#endif |
#if defined(OS_LINUX) |
args->prereserved_sandbox_size = prereserved_sandbox_size_; |