| Index: remoting/host/remoting_me2me_host.cc
|
| diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc
|
| index 8dd59e8f614ecce543f4d03d7822d2b5bdd270b1..9f1489f0aefa4a66098539df5a239952483628de 100644
|
| --- a/remoting/host/remoting_me2me_host.cc
|
| +++ b/remoting/host/remoting_me2me_host.cc
|
| @@ -178,6 +178,9 @@ class HostProcess
|
| void SigTermHandler(int signal_number);
|
| #endif
|
|
|
| + // Asks the daemon to inject Secure Attention Sequence to the console.
|
| + void SendSasToConsole();
|
| +
|
| void ShutdownHostProcess();
|
|
|
| // Applies the host config, returning true if successful.
|
| @@ -505,7 +508,8 @@ void HostProcess::StartHostProcess() {
|
| #else // !defined(REMOTING_MULTI_PROCESS)
|
| DesktopEnvironmentFactory* desktop_environment_factory =
|
| new SessionDesktopEnvironmentFactory(
|
| - context_->input_task_runner(), context_->ui_task_runner());
|
| + context_->input_task_runner(), context_->ui_task_runner(),
|
| + base::Bind(&HostProcess::SendSasToConsole, base::Unretained(this)));
|
| #endif // !defined(REMOTING_MULTI_PROCESS)
|
|
|
| #else // !defined(OS_WIN)
|
| @@ -552,6 +556,13 @@ int HostProcess::get_exit_code() const {
|
| return exit_code_;
|
| }
|
|
|
| +void HostProcess::SendSasToConsole() {
|
| + DCHECK(context_->ui_task_runner()->BelongsToCurrentThread());
|
| +
|
| + if (daemon_channel_)
|
| + daemon_channel_->Send(new ChromotingNetworkDaemonMsg_SendSasToConsole());
|
| +}
|
| +
|
| void HostProcess::ShutdownHostProcess() {
|
| DCHECK(context_->ui_task_runner()->BelongsToCurrentThread());
|
|
|
|
|