Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: ash/login/lock_screen_controller.cc

Issue 2903353003: Adding mojo calls for easy unlock service (Closed)
Patch Set: comments and rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/login/lock_screen_controller.h ('k') | ash/login/lock_screen_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « ash/login/lock_screen_controller.h ('k') | ash/login/lock_screen_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698