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

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

Issue 2885933003: arc: Consolidate IsArcAllowedForUser logic (Closed)
Patch Set: rebase 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
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 70194d74567eb1e3c0425b04269efb40a6db8b2b..814c35cd9cb0984e98d2feac9fca88e3e6a6856a 100644
--- a/chrome/browser/chromeos/arc/arc_util.cc
+++ b/chrome/browser/chromeos/arc/arc_util.cc
@@ -128,11 +128,7 @@ 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_arc_active_directory_user =
- user && user->IsActiveDirectoryUser() &&
- IsArcAllowedForActiveDirectoryUsers();
- if (!has_gaia_account && !is_arc_active_directory_user && !IsArcKioskMode()) {
+ if (!IsArcAllowedForUser(user) && !IsArcKioskMode()) {
VLOG(1) << "Users without GAIA accounts are not supported in ARC.";
return false;
}
@@ -146,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') | components/arc/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698