diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 01:42:19 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 01:42:19 +0000 |
commit | 2ba10ec5f16691b101c573ce25bb084e4ddb5ceb (patch) | |
tree | f85278f6658c398e84d4330da322cfc0f8f6faeb /remoting | |
parent | 5dd660c8afc0c93ec8b5f1d3ac1d25cc0a574fe9 (diff) | |
download | chromium_src-2ba10ec5f16691b101c573ce25bb084e4ddb5ceb.zip chromium_src-2ba10ec5f16691b101c573ce25bb084e4ddb5ceb.tar.gz chromium_src-2ba10ec5f16691b101c573ce25bb084e4ddb5ceb.tar.bz2 |
Fix build for remoting
Remoting turned on -Wall, causing some compilation failures.
TBR=dmaclach, dimich
Review URL: http://codereview.chromium.org/2806006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49882 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/jingle_glue/jingle_test_client.cc | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/remoting/jingle_glue/jingle_test_client.cc b/remoting/jingle_glue/jingle_test_client.cc index e8c1699..255a931 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: |