Index: remoting/host/remoting_me2me_host.cc |
=================================================================== |
--- remoting/host/remoting_me2me_host.cc (revision 166306) |
+++ remoting/host/remoting_me2me_host.cc (working copy) |
@@ -148,6 +148,9 @@ |
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. |
@@ -459,7 +462,8 @@ |
#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) |
@@ -506,6 +510,13 @@ |
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()); |