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

Unified Diff: chrome/browser/chromeos/policy/user_policy_manager_factory_chromeos.cc

Issue 2945023002: Introduce profile for lock screen apps (Closed)
Patch Set: . Created 3 years, 6 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/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

Powered by Google App Engine
This is Rietveld 408576698