Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 11369024: Calling SendSAS() from a service yo make sure that Secure Attention Sequence can be injected even w… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());

Powered by Google App Engine
This is Rietveld 408576698