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

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

Issue 2885933003: arc: Consolidate IsArcAllowedForUser logic (Closed)
Patch Set: fix typo 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..9dd154da9f28be0cff6a3e81180332bb546c05f9 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;
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/screens/user_selection_screen.cc » ('j') | components/arc/arc_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698