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

Unified Diff: ash/wm/workspace/workspace_layout_manager.cc

Issue 1155013005: Refactoring the ownership of ui::InputMethod. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed bot failure: cast_shell_linux Created 5 years, 6 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: ash/wm/workspace/workspace_layout_manager.cc
diff --git a/ash/wm/workspace/workspace_layout_manager.cc b/ash/wm/workspace/workspace_layout_manager.cc
index 6db10ecb1190edd46b79ae0f1d9471301fdf98cf..89c26aff3edce05c2ff94f29a267680f940c7534 100644
--- a/ash/wm/workspace/workspace_layout_manager.cc
+++ b/ash/wm/workspace/workspace_layout_manager.cc
@@ -134,8 +134,7 @@ void WorkspaceLayoutManager::SetChildBounds(
void WorkspaceLayoutManager::OnKeyboardBoundsChanging(
const gfx::Rect& new_bounds) {
- ui::InputMethod* input_method =
- root_window_->GetProperty(aura::client::kRootWindowInputMethodKey);
+ ui::InputMethod* input_method = root_window_->GetHost()->GetInputMethod();
ui::TextInputClient* text_input_client = input_method->GetTextInputClient();
if (!text_input_client)
return;

Powered by Google App Engine
This is Rietveld 408576698