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

Unified Diff: chromeos/login/auth/stub_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/stub_authenticator.h ('k') | components/user_manager/fake_user_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/stub_authenticator.cc
diff --git a/chromeos/login/auth/stub_authenticator.cc b/chromeos/login/auth/stub_authenticator.cc
index 19f32e4e69eec239888cc6527df9c9a9b3c8804e..6fbfb006301a7b4d734bd5648ee68fd32cc200e6 100644
--- a/chromeos/login/auth/stub_authenticator.cc
+++ b/chromeos/login/auth/stub_authenticator.cc
@@ -84,6 +84,15 @@ void StubAuthenticator::LoginAsKioskAccount(
consumer_->OnAuthSuccess(user_context);
}
+void StubAuthenticator::LoginAsArcKioskAccount(
+ const AccountId& /* app_account_id */) {
+ UserContext user_context(expected_user_context_.GetAccountId());
+ user_context.SetIsUsingOAuth(false);
+ user_context.SetUserIDHash(
+ expected_user_context_.GetAccountId().GetUserEmail() + kUserIdHashSuffix);
+ consumer_->OnAuthSuccess(user_context);
+}
+
void StubAuthenticator::OnAuthSuccess() {
// If we want to be more like the real thing, we could save the user ID
// in AuthenticateToLogin, but there's not much of a point.
« no previous file with comments | « chromeos/login/auth/stub_authenticator.h ('k') | components/user_manager/fake_user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698