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

Unified Diff: remoting/client/simple_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/client/host_connection.cc ('k') | remoting/host/simple_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/simple_client.cc
===================================================================
--- remoting/client/simple_client.cc (revision 49299)
+++ remoting/client/simple_client.cc (working copy)
@@ -176,16 +176,19 @@
return 1;
}
- // Get auth token.
- std::string auth_token;
- std::cout << "Auth Token: ";
- getline(std::cin, auth_token);
+ // Get password (with console echo turned off).
+ std::string password;
+ SetConsoleEcho(false);
+ std::cout << "Password: ";
+ getline(std::cin, password);
+ SetConsoleEcho(true);
+ std::cout << std::endl;
// The message loop that everything runs on.
MessageLoop main_loop;
SimpleHostEventHandler handler(&main_loop);
HostConnection connection(new ProtocolDecoder(), &handler);
- connection.Connect(username, auth_token, host_jid);
+ connection.Connect(username, password, host_jid);
// Run the message.
main_loop.Run();
« no previous file with comments | « remoting/client/host_connection.cc ('k') | remoting/host/simple_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698