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

Unified Diff: chromeos/login/auth/cryptohome_authenticator.cc

Issue 2498613003: Add ARC++ kiosk menu items and ability to start kiosk session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 1 month 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: chromeos/login/auth/cryptohome_authenticator.cc
diff --git a/chromeos/login/auth/cryptohome_authenticator.cc b/chromeos/login/auth/cryptohome_authenticator.cc
index be7d10c0375584f095daaafb1aa51f0fce066441..e2b8258952b9ad6e1050ca47b02b1068cfed1ca5 100644
--- a/chromeos/login/auth/cryptohome_authenticator.cc
+++ b/chromeos/login/auth/cryptohome_authenticator.cc
@@ -609,6 +609,22 @@ void CryptohomeAuthenticator::LoginAsKioskAccount(
}
}
+void CryptohomeAuthenticator::LoginAsArcKioskAccount(
+ const AccountId& app_account_id) {
+ DCHECK(task_runner_->RunsTasksOnCurrentThread());
+
+ current_state_.reset(new AuthAttemptState(
+ UserContext(user_manager::USER_TYPE_ARC_KIOSK_APP, app_account_id),
+ false, // unlock
+ false, // online_complete
+ false)); // user_is_new
+
+ remove_user_data_on_failure_ = true;
+ MountPublic(current_state_->AsWeakPtr(),
+ scoped_refptr<CryptohomeAuthenticator>(this),
+ cryptohome::CREATE_IF_MISSING);
+}
+
void CryptohomeAuthenticator::OnAuthSuccess() {
DCHECK(task_runner_->RunsTasksOnCurrentThread());
VLOG(1) << "Login success";

Powered by Google App Engine
This is Rietveld 408576698