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

Unified Diff: remoting/jingle_glue/jingle_test_client.cc

Issue 2806006: Fix build for remoting (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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/jingle_test_client.cc
diff --git a/remoting/jingle_glue/jingle_test_client.cc b/remoting/jingle_glue/jingle_test_client.cc
index e8c1699e73037bd6a5218348b7a660f0d589d54a..255a931ad497f7e00bcad2a9dbc706fd9138e50a 100644
--- a/remoting/jingle_glue/jingle_test_client.cc
+++ b/remoting/jingle_glue/jingle_test_client.cc
@@ -24,31 +24,6 @@ using remoting::JingleClient;
using remoting::JingleChannel;
using remoting::kChromotingTokenServiceName;
-void SetConsoleEcho(bool on) {
-#if defined(OS_WIN)
- HANDLE hIn = GetStdHandle(STD_INPUT_HANDLE);
- if ((hIn == INVALID_HANDLE_VALUE) || (hIn == NULL))
- return;
-
- DWORD mode;
- if (!GetConsoleMode(hIn, &mode))
- return;
-
- if (on) {
- mode = mode | ENABLE_ECHO_INPUT;
- } else {
- mode = mode & ~ENABLE_ECHO_INPUT;
- }
-
- SetConsoleMode(hIn, mode);
-#else // defined(OS_WIN)
- if (on)
- system("stty echo");
- else
- system("stty -echo");
-#endif // !defined(OS_WIN)
-}
-
class JingleTestClient : public JingleChannel::Callback,
public JingleClient::Callback {
public:
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698