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

Unified Diff: ash/login/lock_screen_controller.cc

Issue 2903353003: Adding mojo calls for easy unlock service (Closed)
Patch Set: incoporate comments Created 3 years, 7 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
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..d576caf2e6e81e279f952acede30852e8b6f534a 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::LoadUsers(std::unique_ptr<base::ListValue> users,
+ bool show_guest) {
+ NOTIMPLEMENTED();
+}
+
+void LockScreenController::ShowUserPodCustomIcon(
+ const AccountId& account_id,
+ std::unique_ptr<base::DictionaryValue> icon) {
+ NOTIMPLEMENTED();
+}
+
+void LockScreenController::HideUserPodCustomIcon(const AccountId& account_id) {
+ NOTIMPLEMENTED();
+}
+
+void LockScreenController::SetAuthType(const AccountId& account_id,
+ int auth_type,
+ const std::string& initial_value) {
+ 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,

Powered by Google App Engine
This is Rietveld 408576698