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

Unified Diff: remoting/client/host_connection.cc

Issue 2749004: Token-based authentication for chromoting. (Closed)
Patch Set: - Created 10 years, 6 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 | « remoting/client/host_connection.h ('k') | remoting/client/simple_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/host_connection.cc
diff --git a/remoting/client/host_connection.cc b/remoting/client/host_connection.cc
index f858af634b9f5044b3e1b2b74c9c4fb23ffebbd4..00c542e64717619585e275dcc36e8ef182c9cd63 100644
--- a/remoting/client/host_connection.cc
+++ b/remoting/client/host_connection.cc
@@ -4,6 +4,8 @@
#include "remoting/client/host_connection.h"
+#include "remoting/base/constants.h"
+
namespace remoting {
HostConnection::HostConnection(ProtocolDecoder* decoder,
@@ -16,10 +18,10 @@ HostConnection::~HostConnection() {
}
void HostConnection::Connect(const std::string& username,
- const std::string& password,
+ const std::string& auth_token,
const std::string& host_jid) {
jingle_client_ = new JingleClient();
- jingle_client_->Init(username, password, this);
+ jingle_client_->Init(username, auth_token, kChromotingTokenServiceName, this);
jingle_channel_ = jingle_client_->Connect(host_jid, this);
}
« no previous file with comments | « remoting/client/host_connection.h ('k') | remoting/client/simple_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698