Chromium Code Reviews| Index: views/view.cc |
| diff --git a/views/view.cc b/views/view.cc |
| index 873c0730f20665876369af45f6c0409b20cb2c77..a3a28535fc1508c2da358dd0b7b2c9bfd7c441ca 100644 |
| --- a/views/view.cc |
| +++ b/views/view.cc |
| @@ -843,8 +843,8 @@ TextInputClient* View::GetTextInputClient() { |
| } |
| InputMethod* View::GetInputMethod() { |
| - // TODO(suzhe): Implement it. |
| - return NULL; |
| + Widget* widget = GetWidget(); |
| + return widget ? widget->GetInputMethod() : NULL; |
| } |
| // Accelerators ---------------------------------------------------------------- |