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

Unified Diff: components/user_manager/user_manager_base.cc

Issue 2421323002: Created new account type for ARC++ kiosk. (Closed)
Patch Set: Created 4 years, 2 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: components/user_manager/user_manager_base.cc
diff --git a/components/user_manager/user_manager_base.cc b/components/user_manager/user_manager_base.cc
index 5c9604083030ab880c09e971a6494611894e3fe0..5abe284c2cf9f0d5252f9d70570bc22fc951ec55 100644
--- a/components/user_manager/user_manager_base.cc
+++ b/components/user_manager/user_manager_base.cc
@@ -586,6 +586,11 @@ bool UserManagerBase::IsLoggedInAsKioskApp() const {
return IsUserLoggedIn() && active_user_->GetType() == USER_TYPE_KIOSK_APP;
}
+bool UserManagerBase::IsLoggedInAsArcKioskApp() const {
+ DCHECK(task_runner_->RunsTasksOnCurrentThread());
+ return IsUserLoggedIn() && active_user_->GetType() == USER_TYPE_ARC_KIOSK_APP;
+}
+
bool UserManagerBase::IsLoggedInAsStub() const {
DCHECK(task_runner_->RunsTasksOnCurrentThread());
return IsUserLoggedIn() && IsStubAccountId(active_user_->GetAccountId());

Powered by Google App Engine
This is Rietveld 408576698