Index: remoting/host/win/unprivileged_process_delegate.cc |
diff --git a/remoting/host/win/unprivileged_process_delegate.cc b/remoting/host/win/unprivileged_process_delegate.cc |
index 1f5a174603ca087dcdc2b5224f2fbeea890d638e..5b14c211bd823705b66303c45dbcfc68de1f300e 100644 |
--- a/remoting/host/win/unprivileged_process_delegate.cc |
+++ b/remoting/host/win/unprivileged_process_delegate.cc |
@@ -11,6 +11,7 @@ |
#include <sddl.h> |
#include "base/command_line.h" |
+#include "base/files/file.h" |
#include "base/logging.h" |
#include "base/rand_util.h" |
#include "base/single_thread_task_runner.h" |
@@ -277,13 +278,11 @@ void UnprivilegedProcessDelegate::LaunchProcess( |
base::AutoLock lock(g_inherit_handles_lock.Get()); |
// Create a connected IPC channel. |
- HANDLE temp_handle; |
- if (!CreateConnectedIpcChannel(io_task_runner_, this, &temp_handle, |
- &server)) { |
+ base::File client; |
+ if (!CreateConnectedIpcChannel(io_task_runner_, this, &client, &server)) { |
ReportFatalError(); |
return; |
} |
- ScopedHandle client(temp_handle); |
// Convert the handle value into a decimal integer. Handle values are 32bit |
// even on 64bit platforms. |