summaryrefslogtreecommitdiffstats
path: root/remoting/host/chromoting_host.cc
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-28 22:14:21 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-28 22:14:21 +0000
commit61942eaab1f444e15bef46e71b29f2cfbf5becae (patch)
tree285fe901b04cc98d642f928315c68d4c99eafe1b /remoting/host/chromoting_host.cc
parent91303f2f046164d743d1284887e573e1a7e4906f (diff)
downloadchromium_src-61942eaab1f444e15bef46e71b29f2cfbf5becae.zip
chromium_src-61942eaab1f444e15bef46e71b29f2cfbf5becae.tar.gz
chromium_src-61942eaab1f444e15bef46e71b29f2cfbf5becae.tar.bz2
Report authentication failure on the host side of chromoting
BUG=74436 TEST=Try a random username, it will ask for password again. Review URL: http://codereview.chromium.org/6592040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76275 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/chromoting_host.cc')
-rw-r--r--remoting/host/chromoting_host.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index fa99497..56297dd 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -375,4 +375,18 @@ void ChromotingHost::LocalLoginSucceeded() {
recorder_->Start();
}
+void ChromotingHost::LocalLoginFailed() {
+ if (MessageLoop::current() != context_->main_message_loop()) {
+ context_->main_message_loop()->PostTask(
+ FROM_HERE,
+ NewRunnableMethod(this, &ChromotingHost::LocalLoginFailed));
+ return;
+ }
+
+ protocol::LocalLoginStatus* status = new protocol::LocalLoginStatus();
+ status->set_success(false);
+ connection_->client_stub()->BeginSessionResponse(
+ status, new DeleteTask<protocol::LocalLoginStatus>(status));
+}
+
} // namespace remoting