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

Unified Diff: chrome/browser/policy/profile_policy_connector.cc

Issue 2945023002: Introduce profile for lock screen apps (Closed)
Patch Set: rebase 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/policy/profile_policy_connector.cc
diff --git a/chrome/browser/policy/profile_policy_connector.cc b/chrome/browser/policy/profile_policy_connector.cc
index a595184055a5f80411a9c776fccd7bb401a164a3..53c85a9848b0bbbff75f85121934c4e9b5207e8a 100644
--- a/chrome/browser/policy/profile_policy_connector.cc
+++ b/chrome/browser/policy/profile_policy_connector.cc
@@ -98,11 +98,12 @@ void ProfilePolicyConnector::Init(
#if defined(OS_CHROMEOS)
if (!user) {
DCHECK(schema_registry);
- // This case occurs for the signin profile.
+ // This case occurs for the signin and the lock screen app profiles.
special_user_policy_provider_.reset(
new LoginProfilePolicyProvider(connector->GetPolicyService()));
} else {
- // |user| should never be nullptr except for the signin profile.
+ // |user| should never be nullptr except for the signin and the lock screen
+ // app profile.
is_primary_user_ =
user == user_manager::UserManager::Get()->GetPrimaryUser();
// Note that |DeviceLocalAccountPolicyProvider::Create| returns nullptr when
@@ -179,8 +180,8 @@ const CloudPolicyStore* ProfilePolicyConnector::GetActualPolicyStore() const {
return policy_store_;
#if defined(OS_CHROMEOS)
if (special_user_policy_provider_) {
- // |special_user_policy_provider_| is non-null for device-local accounts and
- // for the login profile.
+ // |special_user_policy_provider_| is non-null for device-local accounts,
+ // for the login profile, and the lock screen app profile.
const DeviceCloudPolicyManagerChromeOS* const device_cloud_policy_manager =
g_browser_process->platform_part()
->browser_policy_connector_chromeos()
« no previous file with comments | « chrome/browser/metrics/chrome_metrics_service_client.cc ('k') | chrome/browser/policy/profile_policy_connector_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698