| Index: ui/views/widget/native_widget_win.cc
|
| diff --git a/ui/views/widget/native_widget_win.cc b/ui/views/widget/native_widget_win.cc
|
| index fc85a882cbd23d5836511081efac7a4f0bc63539..513b7fb999d5991685a23efd328673bfcd14e35c 100644
|
| --- a/ui/views/widget/native_widget_win.cc
|
| +++ b/ui/views/widget/native_widget_win.cc
|
| @@ -660,12 +660,13 @@ bool NativeWidgetWin::HasCapture(unsigned int flags) const {
|
| }
|
|
|
| InputMethod* NativeWidgetWin::CreateInputMethod() {
|
| - if (views::Widget::IsPureViews()) {
|
| - InputMethod* input_method = new InputMethodWin(this);
|
| - input_method->Init(GetWidget());
|
| - return input_method;
|
| - }
|
| +#if defined(USE_AURA)
|
| + InputMethod* input_method = new InputMethodWin(this);
|
| + input_method->Init(GetWidget());
|
| + return input_method;
|
| +#else
|
| return NULL;
|
| +#endif
|
| }
|
|
|
| void NativeWidgetWin::CenterWindow(const gfx::Size& size) {
|
|
|