summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-16 08:39:58 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-16 08:39:58 +0000
commit33930d80c24e758b3a7b3314ece0c969ac51b372 (patch)
tree8498662339f2a5091f7cdb9224d2ebaea5cb8efc /remoting
parent531f61f6cda3855ac5108cdbf27e9f9422ed87b6 (diff)
downloadchromium_src-33930d80c24e758b3a7b3314ece0c969ac51b372.zip
chromium_src-33930d80c24e758b3a7b3314ece0c969ac51b372.tar.gz
chromium_src-33930d80c24e758b3a7b3314ece0c969ac51b372.tar.bz2
Remove duplicate tests of KeyEvent::has_pressed
Cleans up some early-exit tests that duplicate checks in HostEventDispatcher, and which are verified in debug builds via DCHECKs. Review URL: http://codereview.chromium.org/10093001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132381 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r--remoting/host/event_executor_linux.cc4
-rw-r--r--remoting/host/event_executor_win.cc4
2 files changed, 0 insertions, 8 deletions
diff --git a/remoting/host/event_executor_linux.cc b/remoting/host/event_executor_linux.cc
index d6b412e..31e43b9 100644
--- a/remoting/host/event_executor_linux.cc
+++ b/remoting/host/event_executor_linux.cc
@@ -325,10 +325,6 @@ void EventExecutorLinux::InjectKeyEvent(const KeyEvent& event) {
return;
}
- // Events which don't specify whether the key is pressed are invalid.
- if (!event.has_pressed())
- return;
-
int keycode = kInvalidKeycode;
if (event.has_usb_keycode()) {
keycode = UsbKeycodeToNativeKeycode(event.usb_keycode());
diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc
index ac6cf6f..34e36ac 100644
--- a/remoting/host/event_executor_win.cc
+++ b/remoting/host/event_executor_win.cc
@@ -114,10 +114,6 @@ void EventExecutorWin::HandleKey(const KeyEvent& event) {
// Reset the system idle suspend timeout.
SetThreadExecutionState(ES_SYSTEM_REQUIRED);
- // Events which don't specify whether the key is pressed are invalid.
- if (!event.has_pressed())
- return;
-
// The mapping between scancodes and VKEY values depends on the foreground
// window's current keyboard layout.
HKL layout = GetForegroundKeyboardLayout();