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

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: rebase 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
« no previous file with comments | « chromeos/login/auth/cryptohome_authenticator.h ('k') | chromeos/login/auth/login_performer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/cryptohome_authenticator.cc
diff --git a/chromeos/login/auth/cryptohome_authenticator.cc b/chromeos/login/auth/cryptohome_authenticator.cc
index d814110f6659077b495740361fe6f035f70ff747..9fc700af4038cee33c1d0e7578114fc20369068c 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";
« no previous file with comments | « chromeos/login/auth/cryptohome_authenticator.h ('k') | chromeos/login/auth/login_performer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698