| 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 c5cb31bcb26cd2a9d98677f80a14c4c243142796..68901793f0c5b789361646e82e6c4f07890ce6ea 100644
|
| --- a/chrome/browser/policy/profile_policy_connector_factory.cc
|
| +++ b/chrome/browser/policy/profile_policy_connector_factory.cc
|
| @@ -88,10 +88,12 @@ ProfilePolicyConnectorFactory::CreateForProfileInternal(
|
| Profile* profile,
|
| bool force_immediate_load) {
|
| DCHECK(connectors_.find(profile) == connectors_.end());
|
| +
|
| #if defined(ENABLE_CONFIGURATION_POLICY)
|
| -#if defined(OS_CHROMEOS)
|
| SchemaRegistry* schema_registry =
|
| SchemaRegistryServiceFactory::GetForContext(profile);
|
| +
|
| +#if defined(OS_CHROMEOS)
|
| chromeos::User* user = NULL;
|
| if (!chromeos::ProfileHelper::IsSigninProfile(profile)) {
|
| chromeos::UserManager* user_manager = chromeos::UserManager::Get();
|
| @@ -104,15 +106,17 @@ ProfilePolicyConnectorFactory::CreateForProfileInternal(
|
| CloudPolicyManager* user_cloud_policy_manager =
|
| UserCloudPolicyManagerFactory::GetForBrowserContext(profile);
|
| #endif
|
| +
|
| #else
|
| CloudPolicyManager* user_cloud_policy_manager = NULL;
|
| #endif
|
| +
|
| ProfilePolicyConnector* connector = new ProfilePolicyConnector();
|
| connector->Init(force_immediate_load,
|
| #if defined(ENABLE_CONFIGURATION_POLICY) && defined(OS_CHROMEOS)
|
| user,
|
| - schema_registry,
|
| #endif
|
| + schema_registry,
|
| user_cloud_policy_manager);
|
| connectors_[profile] = connector;
|
| return make_scoped_ptr(connector);
|
|
|