OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ash/login/lock_screen_controller.h" |
| 6 |
| 7 namespace ash { |
| 8 |
| 9 LockScreenController::LockScreenController() {} |
| 10 |
| 11 LockScreenController::~LockScreenController() {} |
| 12 |
| 13 void LockScreenController::BindRequest(mojom::LockScreenRequest request) { |
| 14 bindings_.AddBinding(this, std::move(request)); |
| 15 } |
| 16 |
| 17 void LockScreenController::AuthenticateUser(const AccountId& account_id, |
| 18 const std::string& password, |
| 19 bool authenticated_by_pin) { |
| 20 if (lock_screen_client_) { |
| 21 lock_screen_client_->AuthenticateUser(account_id, password, |
| 22 authenticated_by_pin); |
| 23 } |
| 24 } |
| 25 |
| 26 void LockScreenController::SetClient(mojom::LockScreenClientPtr client) { |
| 27 lock_screen_client_ = std::move(client); |
| 28 } |
| 29 |
| 30 void LockScreenController::ShowSignInError() { |
| 31 NOTIMPLEMENTED(); |
| 32 } |
| 33 |
| 34 } // namespace ash |
OLD | NEW |