| Index: remoting/host/win/wts_session_process_launcher.cc
|
| diff --git a/remoting/host/win/wts_session_process_launcher.cc b/remoting/host/win/wts_session_process_launcher.cc
|
| index cf5a9083ab6783fe7e4ab78bd2f0b4fc097535da..a784d1873dbe4b4c86e270a992a58a02d755fd3c 100644
|
| --- a/remoting/host/win/wts_session_process_launcher.cc
|
| +++ b/remoting/host/win/wts_session_process_launcher.cc
|
| @@ -20,7 +20,6 @@
|
| #include "base/logging.h"
|
| #include "base/single_thread_task_runner.h"
|
| #include "base/path_service.h"
|
| -#include "base/process_util.h"
|
| #include "base/rand_util.h"
|
| #include "base/stringprintf.h"
|
| #include "base/utf_string_conversions.h"
|
| @@ -49,8 +48,8 @@ const FilePath::CharType kMe2meHostBinaryName[] =
|
| const FilePath::CharType kMe2meServiceBinaryName[] =
|
| FILE_PATH_LITERAL("remoting_service.exe");
|
|
|
| -// The IPC channel name is passed to the host in the command line.
|
| -const char kChromotingIpcSwitchName[] = "chromoting-ipc";
|
| +// The command line switch specifying the name of the daemon IPC endpoint.
|
| +const char kDaemonIpcSwitchName[] = "daemon-pipe";
|
|
|
| const char kElevateSwitchName[] = "elevate";
|
|
|
| @@ -59,9 +58,9 @@ const char kElevateSwitchName[] = "elevate";
|
| const char* kCopiedSwitchNames[] = {
|
| "auth-config", "host-config", switches::kV, switches::kVModule };
|
|
|
| -// The security descriptor of the Chromoting IPC channel. It gives full access
|
| +// The security descriptor of the daemon IPC endpoint. It gives full access
|
| // to LocalSystem and denies access by anyone else.
|
| -const char kChromotingChannelSecurityDescriptor[] = "O:SYG:SYD:(A;;GA;;;SY)";
|
| +const char kDaemonIpcSecurityDescriptor[] = "O:SYG:SYD:(A;;GA;;;SY)";
|
|
|
| } // namespace
|
|
|
| @@ -141,7 +140,7 @@ bool WtsSessionProcessLauncher::DoLaunchProcess(
|
| // to use and copying known switches from the service's command line.
|
| CommandLine command_line(service_binary);
|
| command_line.AppendSwitchPath(kElevateSwitchName, host_binary);
|
| - command_line.AppendSwitchNative(kChromotingIpcSwitchName,
|
| + command_line.AppendSwitchNative(kDaemonIpcSwitchName,
|
| UTF8ToWide(channel_name));
|
| command_line.CopySwitchesFrom(*CommandLine::ForCurrentProcess(),
|
| kCopiedSwitchNames,
|
| @@ -375,12 +374,12 @@ void WtsSessionProcessLauncher::LaunchProcess() {
|
|
|
| launch_time_ = base::Time::Now();
|
| launcher_.reset(new WorkerProcessLauncher(
|
| - this,
|
| + this, this,
|
| base::Bind(&WtsSessionProcessLauncher::OnLauncherStopped,
|
| base::Unretained(this)),
|
| main_message_loop_,
|
| ipc_message_loop_));
|
| - launcher_->Start(kChromotingChannelSecurityDescriptor);
|
| + launcher_->Start(kDaemonIpcSecurityDescriptor);
|
| }
|
|
|
| void WtsSessionProcessLauncher::OnLauncherStopped() {
|
|
|