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"; |