Index: remoting/host/input_injector_mac.cc |
diff --git a/remoting/host/input_injector_mac.cc b/remoting/host/input_injector_mac.cc |
index c5e870026e3deff4e3e9205e2a6902b76f579821..f695d95e6a00e1ed8b1bbc0be3136ec7163a7983 100644 |
--- a/remoting/host/input_injector_mac.cc |
+++ b/remoting/host/input_injector_mac.cc |
@@ -179,14 +179,14 @@ void InputInjectorMac::Core::InjectKeyEvent(const KeyEvent& event) { |
if (!event.has_pressed() || !event.has_usb_keycode()) |
return; |
- ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance(); |
- int keycode = key_converter->UsbKeycodeToNativeKeycode(event.usb_keycode()); |
+ int keycode = |
+ ui::KeycodeConverter::UsbKeycodeToNativeKeycode(event.usb_keycode()); |
VLOG(3) << "Converting USB keycode: " << std::hex << event.usb_keycode() |
<< " to keycode: " << keycode << std::dec; |
// If we couldn't determine the Mac virtual key code then ignore the event. |
- if (keycode == key_converter->InvalidNativeKeycode()) |
+ if (keycode == ui::KeycodeConverter::InvalidNativeKeycode()) |
return; |
// If this is a modifier key, remember its new state so that it can be |