Index: chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc |
diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc b/chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc |
index a7ac0a370cd4cece7873be29539f8c6dc5802634..dd3f23d6d9e721c77c0fef73b31a3364b6570984 100644 |
--- a/chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc |
+++ b/chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.cc |
@@ -129,15 +129,15 @@ scoped_ptr<UserCloudPolicyManagerChromeOS> |
chromeos::ProfileHelper::Get()->GetUserByProfile(profile); |
CHECK(user); |
- // Only USER_TYPE_REGULAR users have user cloud policy. |
- // USER_TYPE_RETAIL_MODE, USER_TYPE_KIOSK_APP, USER_TYPE_GUEST and |
- // USER_TYPE_SUPERVISED are not signed in and can't authenticate the |
+ // Only USER_TYPE_REGULAR and USER_TYPE_REGULAR_SUPERVISED users have user |
+ // cloud policy. USER_TYPE_RETAIL_MODE, USER_TYPE_KIOSK_APP, USER_TYPE_GUEST |
+ // and USER_TYPE_SUPERVISED are not signed in and can't authenticate the |
// policy registration. |
// USER_TYPE_PUBLIC_ACCOUNT gets its policy from the |
// DeviceLocalAccountPolicyService. |
// Non-managed domains will be skipped by the below check |
const std::string& username = user->email(); |
- if (user->GetType() != user_manager::USER_TYPE_REGULAR || |
+ if (!user->IsRegular() || |
BrowserPolicyConnector::IsNonEnterpriseUser(username)) { |
return scoped_ptr<UserCloudPolicyManagerChromeOS>(); |
} |