Chromium Code Reviews| Index: remoting/host/remoting_me2me_host.cc |
| diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc |
| index 7144a8e5ec3853e43a4790dd6e06fb26d31741f1..b6b734e3ffaa7f5265b59cbb1449a8ea4de2d331 100644 |
| --- a/remoting/host/remoting_me2me_host.cc |
| +++ b/remoting/host/remoting_me2me_host.cc |
| @@ -136,7 +136,7 @@ class HostProcess |
| curtain_ = CurtainMode::Create( |
| base::Bind(&HostProcess::OnDisconnectRequested, |
| base::Unretained(this)), |
| - base::Bind(&HostProcess::OnDisconnectRequested, |
| + base::Bind(&HostProcess::RejectAuthenticatingClient, |
| base::Unretained(this))); |
| } |
| @@ -602,6 +602,12 @@ class HostProcess |
| Shutdown(kInvalidOauthCredentialsExitCode); |
| } |
| + void RejectAuthenticatingClient() { |
| + DCHECK(context_->network_task_runner()->BelongsToCurrentThread()); |
| + DCHECK(host_); |
|
rmsousa
2012/10/17 01:03:55
Specifically, this must always be called from an O
|
| + host_->RejectAuthenticatingClient(); |
| + } |
| + |
| // Invoked when the user uses the Disconnect windows to terminate |
| // the sessions, or when the local session is activated in curtain mode. |
| void OnDisconnectRequested() { |