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

Unified Diff: remoting/host/chromoting_host.cc

Issue 6594138: Block event processing on host/client until the client has authenticated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing source files Created 9 years, 10 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
Index: remoting/host/chromoting_host.cc
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index 9522b5c1e83d54d3135798ea52b9a50fa022bc79..a2d29daf53e88de87517aaf12f189d7cf735d42b 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -382,6 +382,7 @@ void ChromotingHost::LocalLoginSucceeded() {
connection_->client_stub()->BeginSessionResponse(
status, new DeleteTask<protocol::LocalLoginStatus>(status));
+ connection_->SetClientAuthenticated(true);
recorder_->Start();
}
@@ -397,6 +398,8 @@ void ChromotingHost::LocalLoginFailed() {
status->set_success(false);
connection_->client_stub()->BeginSessionResponse(
status, new DeleteTask<protocol::LocalLoginStatus>(status));
+
+ connection_->SetClientAuthenticated(false);
}
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698