Index: views/widget/native_widget_win.cc |
diff --git a/views/widget/native_widget_win.cc b/views/widget/native_widget_win.cc |
index 16fca92b180500eaf04171e266b7ea24d113ad70..8c20b03447cc2f7ba6c215f3332846583e3806ec 100644 |
--- a/views/widget/native_widget_win.cc |
+++ b/views/widget/native_widget_win.cc |
@@ -622,7 +622,12 @@ bool NativeWidgetWin::HasMouseCapture() const { |
} |
InputMethod* NativeWidgetWin::CreateInputMethod() { |
- return views::Widget::IsPureViews() ? new InputMethodWin(this) : NULL; |
+ if (views::Widget::IsPureViews()) { |
+ InputMethod* input_method = new InputMethodWin(this); |
+ input_method->Init(GetWidget()); |
+ return input_method; |
+ } |
+ return NULL; |
} |
void NativeWidgetWin::CenterWindow(const gfx::Size& size) { |