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

Unified Diff: chrome/browser/chromeos/arc/arc_util.cc

Issue 2885933003: arc: Consolidate IsArcAllowedForUser logic (Closed)
Patch Set: add comment for arc kiosk user check Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screens/user_selection_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_util.cc
diff --git a/chrome/browser/chromeos/arc/arc_util.cc b/chrome/browser/chromeos/arc/arc_util.cc
index 383bc749fc6d5e8bfc364643c51c530c363acb89..ffbccfd41855b0044d9e6d528028e546ed0269da 100644
--- a/chrome/browser/chromeos/arc/arc_util.cc
+++ b/chrome/browser/chromeos/arc/arc_util.cc
@@ -128,10 +128,8 @@ bool IsArcAllowedInAppListForProfile(const Profile* profile) {
// (e.g. in public sessions). cf) crbug.com/605545
const user_manager::User* user =
chromeos::ProfileHelper::Get()->GetUserByProfile(profile);
- const bool has_gaia_account = user && user->HasGaiaAccount();
- const bool is_active_directory_user = user && user->IsActiveDirectoryUser();
- if (!has_gaia_account && !is_active_directory_user && !IsArcKioskMode()) {
- VLOG(1) << "Users without GAIA or AD accounts are not supported in ARC.";
+ if (!IsArcAllowedForUser(user)) {
+ VLOG(1) << "ARC is not allowed for the user.";
return false;
}
@@ -144,13 +142,6 @@ bool IsArcAllowedInAppListForProfile(const Profile* profile) {
return false;
}
- // Do not allow for Ephemeral data user. cf) b/26402681
- if (user_manager::UserManager::Get()
- ->IsCurrentUserCryptohomeDataEphemeral()) {
- VLOG(1) << "Users with ephemeral data are not supported in ARC.";
- return false;
- }
-
return true;
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screens/user_selection_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698