summaryrefslogtreecommitdiffstats
path: root/remoting/client/plugin
diff options
context:
space:
mode:
authorspang <spang@chromium.org>2014-08-26 18:32:39 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-27 01:33:32 +0000
commitba8794f64adbbfc8f92327b632dad034de408726 (patch)
treec07a7ddac3131d1c3cd6b52032daeaf33a0e31c2 /remoting/client/plugin
parent0e014b9ad964236d67db60488168dbc0811655e9 (diff)
downloadchromium_src-ba8794f64adbbfc8f92327b632dad034de408726.zip
chromium_src-ba8794f64adbbfc8f92327b632dad034de408726.tar.gz
chromium_src-ba8794f64adbbfc8f92327b632dad034de408726.tar.bz2
events: keycodes: Remove the stateless singleton instance of KeycodeConverter
All methods can be safely made static and the singleton removed. TBR=ben@chromium.org Review URL: https://codereview.chromium.org/494813002 Cr-Commit-Position: refs/heads/master@{#292070}
Diffstat (limited to 'remoting/client/plugin')
-rw-r--r--remoting/client/plugin/pepper_input_handler.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/remoting/client/plugin/pepper_input_handler.cc b/remoting/client/plugin/pepper_input_handler.cc
index 5bdebf3..f12b1fd 100644
--- a/remoting/client/plugin/pepper_input_handler.cc
+++ b/remoting/client/plugin/pepper_input_handler.cc
@@ -39,8 +39,7 @@ uint32_t GetUsbKeyCode(pp::KeyboardInputEvent pp_key_event) {
std::string codestr = pp_key_event.GetCode().AsString();
// Convert the |code| string into a USB keycode.
- ui::KeycodeConverter* key_converter = ui::KeycodeConverter::GetInstance();
- return key_converter->CodeToUsbKeycode(codestr.c_str());
+ return ui::KeycodeConverter::CodeToUsbKeycode(codestr.c_str());
}
bool PepperInputHandler::HandleInputEvent(const pp::InputEvent& event) {