Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3249)

Unified Diff: chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc

Issue 1155013005: Refactoring the ownership of ui::InputMethod. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..d242bd072629b568d0d9c62504a06e75f099dd42 100644
--- a/chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc
+++ b/chrome/browser/ui/ash/ash_keyboard_controller_proxy.cc
@@ -21,9 +21,9 @@
#include "extensions/common/constants.h"
#include "extensions/common/extension_messages.h"
#include "ipc/ipc_message_macros.h"
-#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 +125,9 @@ void AshKeyboardControllerProxy::OnRequest(
}
ui::InputMethod* AshKeyboardControllerProxy::GetInputMethod() {
- aura::Window* root_window = ash::Shell::GetInstance()->GetPrimaryRootWindow();
+ aura::Window* root_window = ash::Shell::GetTargetRootWindow();
DCHECK(root_window);
- return root_window->GetProperty(aura::client::kRootWindowInputMethodKey);
+ return root_window->GetHost()->GetInputMethod();
}
void AshKeyboardControllerProxy::RequestAudioInput(

Powered by Google App Engine
This is Rietveld 408576698