Chromium Code Reviews| Index: chrome/browser/policy/profile_policy_connector_factory.cc |
| diff --git a/chrome/browser/policy/profile_policy_connector_factory.cc b/chrome/browser/policy/profile_policy_connector_factory.cc |
| index a992459ddc09e029047967c6a8eab2a8682528e2..4b836952e3d96050c6bf13fddb5fc2084ab78ffe 100644 |
| --- a/chrome/browser/policy/profile_policy_connector_factory.cc |
| +++ b/chrome/browser/policy/profile_policy_connector_factory.cc |
| @@ -110,12 +110,15 @@ ProfilePolicyConnectorFactory::CreateForBrowserContextInternal( |
| Profile* const profile = Profile::FromBrowserContext(context); |
| const user_manager::User* user = nullptr; |
| if (chromeos::ProfileHelper::IsSigninProfile(profile)) { |
| - policy::BrowserPolicyConnectorChromeOS* browser_policy_connector = |
| - g_browser_process->platform_part()->browser_policy_connector_chromeos(); |
| policy::DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager = |
| - browser_policy_connector->GetDeviceCloudPolicyManager(); |
| - device_cloud_policy_manager->SetSigninProfileSchemaRegistry( |
| - schema_registry); |
| + g_browser_process->platform_part() |
| + ->browser_policy_connector_chromeos() |
| + ->GetDeviceCloudPolicyManager(); |
| + // TODO(tnagel): Do we need to do something for Active Directory management? |
|
emaxx
2016/11/17 01:14:32
This piece was solely for supporting cloud policy
|
| + if (device_cloud_policy_manager) { |
| + device_cloud_policy_manager->SetSigninProfileSchemaRegistry( |
| + schema_registry); |
| + } |
| } else { |
| user = chromeos::ProfileHelper::Get()->GetUserByProfile(profile); |
| CHECK(user); |