summaryrefslogtreecommitdiff
path: root/chromium/ui/keyboard/keyboard_ui.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/keyboard/keyboard_ui.cc')
-rw-r--r--chromium/ui/keyboard/keyboard_ui.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/chromium/ui/keyboard/keyboard_ui.cc b/chromium/ui/keyboard/keyboard_ui.cc
index 16d24e63da9..207f9c0c5a7 100644
--- a/chromium/ui/keyboard/keyboard_ui.cc
+++ b/chromium/ui/keyboard/keyboard_ui.cc
@@ -18,15 +18,19 @@ KeyboardUI::KeyboardUI() = default;
KeyboardUI::~KeyboardUI() = default;
void KeyboardUI::ShowKeyboardWindow() {
- if (HasKeyboardWindow()) {
+ DVLOG(1) << "ShowKeyboardWindow";
+ aura::Window* window = GetKeyboardWindow();
+ if (window) {
TRACE_EVENT0("vk", "ShowKeyboardWindow");
- GetKeyboardWindow()->Show();
+ window->Show();
}
}
void KeyboardUI::HideKeyboardWindow() {
- if (HasKeyboardWindow())
- GetKeyboardWindow()->Hide();
+ DVLOG(1) << "HideKeyboardWindow";
+ aura::Window* window = GetKeyboardWindow();
+ if (window)
+ window->Hide();
}
void KeyboardUI::SetController(KeyboardController* controller) {