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

Unified Diff: remoting/jingle_glue/jingle_test_client.cc

Issue 2724010: Revert 49298 - Broke compile - Token-based authentication for chromoting.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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/jingle_glue/jingle_client.cc ('k') | remoting/tools/gettoken.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/jingle_test_client.cc
===================================================================
--- remoting/jingle_glue/jingle_test_client.cc (revision 49299)
+++ remoting/jingle_glue/jingle_test_client.cc (working copy)
@@ -15,13 +15,11 @@
#include "base/at_exit.h"
#include "media/base/data_buffer.h"
-#include "remoting/base/constants.h"
#include "remoting/jingle_glue/jingle_channel.h"
#include "remoting/jingle_glue/jingle_client.h"
using remoting::JingleClient;
using remoting::JingleChannel;
-using remoting::kChromotingTokenServiceName;
void SetConsoleEcho(bool on) {
#if defined(OS_WIN)
@@ -53,10 +51,10 @@
public:
virtual ~JingleTestClient() {}
- void Run(const std::string& username, const std::string& auth_token,
+ void Run(const std::string& username, const std::string& password,
const std::string& host_jid) {
client_ = new JingleClient();
- client_->Init(username, auth_token, kChromotingTokenServiceName, this);
+ client_->Init(username, password, this);
if (host_jid != "") {
scoped_refptr<JingleChannel> channel = client_->Connect(host_jid, this);
@@ -146,13 +144,16 @@
std::cout << "JID: ";
std::cin >> username;
- std::string auth_token;
- std::cout << "Auth token: ";
- std::cin >> auth_token;
+ std::string password;
+ SetConsoleEcho(false);
+ std::cout << "Password: ";
+ std::cin >> password;
+ SetConsoleEcho(true);
+ std::cout << std::endl;
JingleTestClient client;
- client.Run(username, auth_token, host_jid);
+ client.Run(username, password, host_jid);
return 0;
}
« no previous file with comments | « remoting/jingle_glue/jingle_client.cc ('k') | remoting/tools/gettoken.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698