| Index: views/widget/native_widget_views.cc
|
| diff --git a/views/widget/native_widget_views.cc b/views/widget/native_widget_views.cc
|
| index 5fc87214edac04eeb1f202de099ac115364e227d..6e0139be0a786698fc0e0310fa2edf66111636d6 100644
|
| --- a/views/widget/native_widget_views.cc
|
| +++ b/views/widget/native_widget_views.cc
|
| @@ -236,10 +236,12 @@ bool NativeWidgetViews::HasMouseCapture() const {
|
|
|
| InputMethod* NativeWidgetViews::CreateInputMethod() {
|
| #if defined(HAVE_IBUS)
|
| - return new InputMethodIBus(this);
|
| + InputMethod* input_method = new InputMethodIBus(this);
|
| #else
|
| - return new MockInputMethod(this);
|
| + InputMethod* input_method = new MockInputMethod(this);
|
| #endif
|
| + input_method->Init(GetWidget());
|
| + return input_method;
|
| }
|
|
|
| void NativeWidgetViews::CenterWindow(const gfx::Size& size) {
|
|
|