oobe/login: Delegate accelerator handling to LoginDisplayHost
Bug: 1102393
Change-Id: I07e1be1c95efec803110296e3bcd1de0f6576bed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2283333
Commit-Queue: Denis Kuznetsov [CET] <antrim@chromium.org>
Reviewed-by: Roman Sorokin [CET] <rsorokin@chromium.org>
Auto-Submit: Denis Kuznetsov [CET] <antrim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786687}
diff --git a/ash/login/login_screen_controller.cc b/ash/login/login_screen_controller.cc
index a3d1851..f469957 100644
--- a/ash/login/login_screen_controller.cc
+++ b/ash/login/login_screen_controller.cc
@@ -270,12 +270,6 @@
client_->RequestPublicSessionKeyboardLayouts(account_id, locale);
}
-void LoginScreenController::ShowFeedback() {
- if (!client_)
- return;
- client_->ShowFeedback();
-}
-
void LoginScreenController::SetClient(LoginScreenClient* client) {
client_ = client;
}
@@ -421,8 +415,11 @@
->SetKioskApps(kiosk_apps, launch_app, on_show_menu);
}
-void LoginScreenController::ShowResetScreen() {
- client_->ShowResetScreen();
+void LoginScreenController::HandleAccelerator(
+ ash::LoginAcceleratorAction action) {
+ if (!client_)
+ return;
+ client_->HandleAccelerator(action);
}
void LoginScreenController::ShowAccountAccessHelpApp(