Chromium Code Reviews| Index: chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc |
| diff --git a/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc b/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc |
| index b0681d7a3dc7629e239e8e25f5cdabd5959ed78c..37b53c4362cf7546ef78ce2a5bc09015862a2020 100644 |
| --- a/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc |
| +++ b/chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc |
| @@ -147,8 +147,10 @@ UserPolicyManagerFactoryChromeOS::CreateManagerForProfile( |
| const base::CommandLine* command_line = |
| base::CommandLine::ForCurrentProcess(); |
| // Don't initialize cloud policy for the signin profile. |
|
emaxx
2017/06/23 16:16:30
nit: Add " and the lock screen app profile".
tbarzic
2017/06/23 17:18:40
Done.
|
| - if (chromeos::ProfileHelper::IsSigninProfile(profile)) |
| + if (chromeos::ProfileHelper::IsSigninProfile(profile) || |
| + chromeos::ProfileHelper::IsLockScreenAppProfile(profile)) { |
| return {}; |
| + } |
| // |user| should never be nullptr except for the signin profile. This object |
|
emaxx
2017/06/23 16:16:30
nit: Update this comment too.
tbarzic
2017/06/23 17:18:40
Done.
|
| // is created as part of the Profile creation, which happens right after |