summaryrefslogtreecommitdiffstats
path: root/ash/shell/keyboard_controller_proxy_stub.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/shell/keyboard_controller_proxy_stub.cc')
-rw-r--r--ash/shell/keyboard_controller_proxy_stub.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/ash/shell/keyboard_controller_proxy_stub.cc b/ash/shell/keyboard_controller_proxy_stub.cc
index 04d1bf3..2376c1d 100644
--- a/ash/shell/keyboard_controller_proxy_stub.cc
+++ b/ash/shell/keyboard_controller_proxy_stub.cc
@@ -7,7 +7,7 @@
#include "ash/shell.h"
#include "ash/shell_delegate.h"
#include "ui/aura/window.h"
-#include "ui/wm/core/input_method_event_filter.h"
+#include "ui/base/ime/mock_input_method.h"
using namespace content;
@@ -37,7 +37,9 @@ BrowserContext* KeyboardControllerProxyStub::GetBrowserContext() {
}
ui::InputMethod* KeyboardControllerProxyStub::GetInputMethod() {
- return Shell::GetInstance()->input_method_filter()->input_method();
+ if (!input_method_)
+ input_method_.reset(new ui::MockInputMethod(NULL));
+ return input_method_.get();
}
void KeyboardControllerProxyStub::RequestAudioInput(