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

Unified Diff: ash/common/keyboard/keyboard_ui.cc

Issue 2154523002: Move AccessibilityDelegate ownership to ash::WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setmediadelegate
Patch Set: cleanup, fix test Created 4 years, 5 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/common/keyboard/keyboard_ui.cc
diff --git a/ash/common/keyboard/keyboard_ui.cc b/ash/common/keyboard/keyboard_ui.cc
index 99067def6dbc0b11ac8223544befefe00940aea9..c9d2fe9c8c167b3a0ad9bdf11bec13bcedd0dc94 100644
--- a/ash/common/keyboard/keyboard_ui.cc
+++ b/ash/common/keyboard/keyboard_ui.cc
@@ -35,9 +35,7 @@ class KeyboardUIImpl : public KeyboardUI, public AccessibilityObserver {
// to the appropriate keyboard functions.
}
bool IsEnabled() override {
- return WmShell::Get()
- ->GetAccessibilityDelegate()
- ->IsVirtualKeyboardEnabled();
+ return WmShell::Get()->accessibility_delegate()->IsVirtualKeyboardEnabled();
}
// AccessibilityObserver:

Powered by Google App Engine
This is Rietveld 408576698