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

Unified Diff: remoting/host/remoting_me2me_host.cc

Issue 11187017: Use RejectAuthenticatingClient instead of DisconnectAllClients to reject incoming clients on curtai… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698