Index: chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc |
diff --git a/chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc b/chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc |
index 0b792444a3fa4d5dc38c59a37624375362c87387..636608a3623cede89d9f9d239aa67cc06846ef18 100644 |
--- a/chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc |
+++ b/chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc |
@@ -24,6 +24,7 @@ |
#include "ui/aura/client/aura_constants.h" |
#include "ui/aura/window.h" |
#include "ui/aura/window_event_dispatcher.h" |
+#include "ui/aura/window_tree_host.h" |
#include "ui/compositor/scoped_layer_animation_settings.h" |
#include "ui/keyboard/keyboard_controller.h" |
#include "ui/keyboard/keyboard_controller_observer.h" |
@@ -125,9 +126,9 @@ void AshKeyboardControllerProxy::OnRequest( |
} |
ui::InputMethod* AshKeyboardControllerProxy::GetInputMethod() { |
- aura::Window* root_window = ash::Shell::GetInstance()->GetPrimaryRootWindow(); |
+ aura::Window* root_window = ash::Shell::GetPrimaryRootWindow(); |
DCHECK(root_window); |
- return root_window->GetProperty(aura::client::kRootWindowInputMethodKey); |
+ return root_window->GetHost()->GetInputMethod(); |
} |
void AshKeyboardControllerProxy::RequestAudioInput( |