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

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

Issue 2655873002: Get enrollment token from DMServer when an Active Directory user uses ARC (Closed)
Patch Set: Remove unnecessary includes Created 3 years, 11 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_session_manager.cc
diff --git a/chrome/browser/chromeos/arc/arc_session_manager.cc b/chrome/browser/chromeos/arc/arc_session_manager.cc
index 4858e187b06495dc36b4f14436338ec23116974e..b59ba77f85d80e5cdb6b467eff4e77a85392b1c6 100644
--- a/chrome/browser/chromeos/arc/arc_session_manager.cc
+++ b/chrome/browser/chromeos/arc/arc_session_manager.cc
@@ -177,7 +177,8 @@ bool ArcSessionManager::IsAllowedForProfile(const Profile* profile) {
user_manager::User const* const user =
chromeos::ProfileHelper::Get()->GetUserByProfile(profile);
- if ((!user || !user->HasGaiaAccount()) && !IsArcKioskMode()) {
+ if ((!user || !user->HasGaiaAccount()) && !IsArcKioskMode() &&
+ !user->IsActiveDirectoryUser()) {
VLOG(1) << "Users without GAIA accounts are not supported in ARC.";
return false;
}

Powered by Google App Engine
This is Rietveld 408576698