Index: chrome/browser/ui/ash/lock_screen_client.cc |
diff --git a/chrome/browser/ui/ash/lock_screen_client.cc b/chrome/browser/ui/ash/lock_screen_client.cc |
index 9d381c9239df2f98c79510deac16901b37868ab5..1eaeaf51c775d135aa03b51b6c72dffbb4335e13 100644 |
--- a/chrome/browser/ui/ash/lock_screen_client.cc |
+++ b/chrome/browser/ui/ash/lock_screen_client.cc |
@@ -36,7 +36,8 @@ LockScreenClient* LockScreenClient::Get() { |
void LockScreenClient::AuthenticateUser(const AccountId& account_id, |
const std::string& hashed_password, |
- bool authenticated_by_pin) { |
+ bool authenticated_by_pin, |
+ AuthenticateUserCallback callback) { |
// TODO(xiaoyinh): Complete the implementation below. |
// It should be similar as SigninScreenHandler::HandleAuthenticateUser. |
chromeos::UserContext user_context(account_id); |
@@ -44,7 +45,13 @@ void LockScreenClient::AuthenticateUser(const AccountId& account_id, |
std::string(), hashed_password); |
user_context.SetKey(key); |
user_context.SetIsUsingPin(authenticated_by_pin); |
- chromeos::ScreenLocker::default_screen_locker()->Authenticate(user_context); |
+ chromeos::ScreenLocker::default_screen_locker()->Authenticate( |
+ user_context, std::move(callback)); |
+} |
+ |
+void LockScreenClient::ShowLockScreen( |
+ ash::mojom::LockScreen::ShowLockScreenCallback on_shown) { |
+ lock_screen_->ShowLockScreen(std::move(on_shown)); |
} |
void LockScreenClient::ShowErrorMessage(int32_t login_attempts, |