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

Unified Diff: remoting/protocol/host_event_dispatcher.cc

Issue 10894050: Remove support for Windows-style keycodes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DCHECK in EventExecutors if the USB keycode is missing Created 8 years, 4 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
Index: remoting/protocol/host_event_dispatcher.cc
diff --git a/remoting/protocol/host_event_dispatcher.cc b/remoting/protocol/host_event_dispatcher.cc
index 6ba6dd0f258f5c1e30f7fca0cbabfdc6855bb68d..f589e0d0a2c1bfba9c47513b795d59162d195bcb 100644
--- a/remoting/protocol/host_event_dispatcher.cc
+++ b/remoting/protocol/host_event_dispatcher.cc
@@ -38,8 +38,7 @@ void HostEventDispatcher::OnMessageReceived(
if (message->has_key_event()) {
const KeyEvent& event = message->key_event();
- if ((event.has_keycode() || event.has_usb_keycode()) &&
- event.has_pressed()) {
+ if (event.has_usb_keycode() && event.has_pressed()) {
input_stub_->InjectKeyEvent(event);
} else {
LOG(WARNING) << "Received invalid key event.";

Powered by Google App Engine
This is Rietveld 408576698