| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/login/lock_screen_controller.h" | 5 #include "ash/login/lock_screen_controller.h" |
| 6 | 6 |
| 7 #include "ash/login/ui/lock_screen.h" | 7 #include "ash/login/ui/lock_screen.h" |
| 8 #include "chromeos/cryptohome/system_salt_getter.h" | 8 #include "chromeos/cryptohome/system_salt_getter.h" |
| 9 #include "chromeos/login/auth/user_context.h" | 9 #include "chromeos/login/auth/user_context.h" |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 void LockScreenController::HideUserPodCustomIcon(const AccountId& account_id) { | 47 void LockScreenController::HideUserPodCustomIcon(const AccountId& account_id) { |
| 48 NOTIMPLEMENTED(); | 48 NOTIMPLEMENTED(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 void LockScreenController::SetAuthType(const AccountId& account_id, | 51 void LockScreenController::SetAuthType(const AccountId& account_id, |
| 52 mojom::AuthType auth_type, | 52 mojom::AuthType auth_type, |
| 53 const base::string16& initial_value) { | 53 const base::string16& initial_value) { |
| 54 NOTIMPLEMENTED(); | 54 NOTIMPLEMENTED(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void LockScreenController::LoadUsers(std::unique_ptr<base::ListValue> users, | 57 void LockScreenController::LoadUsers(std::vector<mojom::LoginUserInfoPtr> users, |
| 58 bool show_guest) { | 58 bool show_guest) { |
| 59 NOTIMPLEMENTED(); | 59 NOTIMPLEMENTED(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 void LockScreenController::AuthenticateUser( | 62 void LockScreenController::AuthenticateUser( |
| 63 const AccountId& account_id, | 63 const AccountId& account_id, |
| 64 const std::string& password, | 64 const std::string& password, |
| 65 bool authenticated_by_pin, | 65 bool authenticated_by_pin, |
| 66 mojom::LockScreenClient::AuthenticateUserCallback callback) { | 66 mojom::LockScreenClient::AuthenticateUserCallback callback) { |
| 67 if (!lock_screen_client_) | 67 if (!lock_screen_client_) |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 key.Transform(chromeos::Key::KEY_TYPE_SALTED_SHA256_TOP_HALF, system_salt); | 110 key.Transform(chromeos::Key::KEY_TYPE_SALTED_SHA256_TOP_HALF, system_salt); |
| 111 lock_screen_client_->AuthenticateUser( | 111 lock_screen_client_->AuthenticateUser( |
| 112 account_id, key.GetSecret(), authenticated_by_pin, std::move(callback)); | 112 account_id, key.GetSecret(), authenticated_by_pin, std::move(callback)); |
| 113 } | 113 } |
| 114 | 114 |
| 115 void LockScreenController::OnGetSystemSalt(const std::string& system_salt) { | 115 void LockScreenController::OnGetSystemSalt(const std::string& system_salt) { |
| 116 std::move(pending_user_auth_).Run(system_salt); | 116 std::move(pending_user_auth_).Run(system_salt); |
| 117 } | 117 } |
| 118 | 118 |
| 119 } // namespace ash | 119 } // namespace ash |
| OLD | NEW |