| Index: ash/login/lock_screen_controller.cc
|
| diff --git a/ash/login/lock_screen_controller.cc b/ash/login/lock_screen_controller.cc
|
| index 5ff835e034049bb50717f77809a1f13da4591d08..8b99e6fd7acf0d3f385745d9db2b6a8723ecf888 100644
|
| --- a/ash/login/lock_screen_controller.cc
|
| +++ b/ash/login/lock_screen_controller.cc
|
| @@ -17,6 +17,42 @@ void LockScreenController::BindRequest(mojom::LockScreenRequest request) {
|
| bindings_.AddBinding(this, std::move(request));
|
| }
|
|
|
| +void LockScreenController::SetClient(mojom::LockScreenClientPtr client) {
|
| + lock_screen_client_ = std::move(client);
|
| +}
|
| +
|
| +void LockScreenController::ShowErrorMessage(int32_t login_attempts,
|
| + const std::string& error_text,
|
| + const std::string& help_link_text,
|
| + int32_t help_topic_id) {
|
| + NOTIMPLEMENTED();
|
| +}
|
| +
|
| +void LockScreenController::ClearErrors() {
|
| + NOTIMPLEMENTED();
|
| +}
|
| +
|
| +void LockScreenController::ShowUserPodCustomIcon(
|
| + const AccountId& account_id,
|
| + mojom::UserPodCustomIconOptionsPtr icon) {
|
| + NOTIMPLEMENTED();
|
| +}
|
| +
|
| +void LockScreenController::HideUserPodCustomIcon(const AccountId& account_id) {
|
| + NOTIMPLEMENTED();
|
| +}
|
| +
|
| +void LockScreenController::SetAuthType(const AccountId& account_id,
|
| + mojom::AuthType auth_type,
|
| + const base::string16& initial_value) {
|
| + NOTIMPLEMENTED();
|
| +}
|
| +
|
| +void LockScreenController::LoadUsers(std::unique_ptr<base::ListValue> users,
|
| + bool show_guest) {
|
| + NOTIMPLEMENTED();
|
| +}
|
| +
|
| void LockScreenController::AuthenticateUser(const AccountId& account_id,
|
| const std::string& password,
|
| bool authenticated_by_pin) {
|
| @@ -28,19 +64,22 @@ void LockScreenController::AuthenticateUser(const AccountId& account_id,
|
| account_id, password, authenticated_by_pin));
|
| }
|
|
|
| -void LockScreenController::SetClient(mojom::LockScreenClientPtr client) {
|
| - lock_screen_client_ = std::move(client);
|
| +void LockScreenController::AttemptUnlock(const AccountId& account_id) {
|
| + if (!lock_screen_client_)
|
| + return;
|
| + lock_screen_client_->AttemptUnlock(account_id);
|
| }
|
|
|
| -void LockScreenController::ShowErrorMessage(int32_t login_attempts,
|
| - const std::string& error_text,
|
| - const std::string& help_link_text,
|
| - int32_t help_topic_id) {
|
| - NOTIMPLEMENTED();
|
| +void LockScreenController::HardlockPod(const AccountId& account_id) {
|
| + if (!lock_screen_client_)
|
| + return;
|
| + lock_screen_client_->HardlockPod(account_id);
|
| }
|
|
|
| -void LockScreenController::ClearErrors() {
|
| - NOTIMPLEMENTED();
|
| +void LockScreenController::RecordClickOnLockIcon(const AccountId& account_id) {
|
| + if (!lock_screen_client_)
|
| + return;
|
| + lock_screen_client_->RecordClickOnLockIcon(account_id);
|
| }
|
|
|
| void LockScreenController::DoAuthenticateUser(const AccountId& account_id,
|
|
|