Created new account type for ARC++ kiosk.
The main goal of this CL is to split the CL of a new type of session, that will launch Android app in full screen mode.
The of account type introduced here has one key property - it must be affiliated. This property is covered by unittest.
More tests (including browser tests) will be written for complete session.
BUG=634497
TEST=unittest
Review-Url: https://codereview.chromium.org/2421323002
Cr-Commit-Position: refs/heads/master@{#427351}
diff --git a/components/user_manager/fake_user_manager.cc b/components/user_manager/fake_user_manager.cc
index 52e54ae..04164dbe 100644
--- a/components/user_manager/fake_user_manager.cc
+++ b/components/user_manager/fake_user_manager.cc
@@ -244,6 +244,13 @@
: false;
}
+bool FakeUserManager::IsLoggedInAsArcKioskApp() const {
+ const user_manager::User* active_user = GetActiveUser();
+ return active_user
+ ? active_user->GetType() == user_manager::USER_TYPE_ARC_KIOSK_APP
+ : false;
+}
+
bool FakeUserManager::IsLoggedInAsStub() const {
return false;
}