Index: ash/login/lock_screen_controller.cc |
diff --git a/ash/login/lock_screen_controller.cc b/ash/login/lock_screen_controller.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..27cec62ac1bed12e0ad0554fd047c38407342fbb |
--- /dev/null |
+++ b/ash/login/lock_screen_controller.cc |
@@ -0,0 +1,34 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ash/login/lock_screen_controller.h" |
+ |
+namespace ash { |
+ |
+LockScreenController::LockScreenController() {} |
+ |
+LockScreenController::~LockScreenController() {} |
+ |
+void LockScreenController::BindRequest(mojom::LockScreenRequest request) { |
+ bindings_.AddBinding(this, std::move(request)); |
+} |
+ |
+void LockScreenController::AuthenticateUser(const AccountId& account_id, |
+ const std::string& password, |
+ bool authenticated_by_pin) { |
+ if (lock_screen_client_) { |
+ lock_screen_client_->AuthenticateUser(account_id, password, |
+ authenticated_by_pin); |
+ } |
+} |
+ |
+void LockScreenController::SetClient(mojom::LockScreenClientPtr client) { |
+ lock_screen_client_ = std::move(client); |
+} |
+ |
+void LockScreenController::ShowSignInError() { |
+ NOTIMPLEMENTED(); |
+} |
+ |
+} // namespace ash |