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

Unified Diff: remoting/host/desktop_session_agent.cc

Issue 12320014: Switch Pepper Linux to use shared USB<->native key conversion table. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix missed kInvalidKeycode. Created 7 years, 10 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 | remoting/host/event_executor_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_session_agent.cc
diff --git a/remoting/host/desktop_session_agent.cc b/remoting/host/desktop_session_agent.cc
index 6f0996e31981a451fccf3bb0ffa28ce7c7ff30d9..cd476779402093d43dda868baa3a7a8d1a1168af 100644
--- a/remoting/host/desktop_session_agent.cc
+++ b/remoting/host/desktop_session_agent.cc
@@ -437,7 +437,8 @@ void DesktopSessionAgent::OnInjectKeyEvent(
// Ignore unknown keycodes.
if (event.has_usb_keycode() &&
- UsbKeycodeToNativeKeycode(event.usb_keycode()) == kInvalidKeycode) {
+ (UsbKeycodeToNativeKeycode(event.usb_keycode()) ==
+ InvalidNativeKeycode())) {
LOG(ERROR) << "KeyEvent: unknown USB keycode: "
<< std::hex << event.usb_keycode() << std::dec;
return;
« no previous file with comments | « no previous file | remoting/host/event_executor_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698