| Index: chrome/browser/prefs/chrome_pref_service_factory.cc
|
| diff --git a/chrome/browser/prefs/chrome_pref_service_factory.cc b/chrome/browser/prefs/chrome_pref_service_factory.cc
|
| index c28c479ea822fe2dbdd82b51a3eb8446de64b856..fef26a8e144ca6f5e9a0ae81bee02effa0c4642b 100644
|
| --- a/chrome/browser/prefs/chrome_pref_service_factory.cc
|
| +++ b/chrome/browser/prefs/chrome_pref_service_factory.cc
|
| @@ -15,7 +15,7 @@
|
| #include "base/prefs/pref_registry.h"
|
| #include "base/prefs/pref_service.h"
|
| #include "base/prefs/pref_value_store.h"
|
| -#include "chrome/browser/policy/configuration_policy_pref_store.h"
|
| +#include "chrome/browser/browser_process.h"
|
| #include "chrome/browser/prefs/command_line_pref_store.h"
|
| #include "chrome/browser/prefs/pref_model_associator.h"
|
| #include "chrome/browser/prefs/pref_service_syncable_builder.h"
|
| @@ -26,6 +26,12 @@
|
| #include "grit/chromium_strings.h"
|
| #include "grit/generated_resources.h"
|
|
|
| +#if defined(ENABLE_CONFIGURATION_POLICY)
|
| +#include "chrome/browser/policy/browser_policy_connector.h"
|
| +#include "chrome/browser/policy/configuration_policy_pref_store.h"
|
| +#include "chrome/browser/policy/policy_types.h"
|
| +#endif
|
| +
|
| using content::BrowserContext;
|
| using content::BrowserThread;
|
|
|
| @@ -75,12 +81,14 @@ void PrepareBuilder(
|
|
|
| #if defined(ENABLE_CONFIGURATION_POLICY)
|
| using policy::ConfigurationPolicyPrefStore;
|
| - builder->WithManagedPrefs(
|
| - ConfigurationPolicyPrefStore::CreateMandatoryPolicyPrefStore(
|
| - policy_service));
|
| - builder->WithRecommendedPrefs(
|
| - ConfigurationPolicyPrefStore::CreateRecommendedPolicyPrefStore(
|
| - policy_service));
|
| + builder->WithManagedPrefs(new ConfigurationPolicyPrefStore(
|
| + policy_service,
|
| + g_browser_process->browser_policy_connector()->GetHandlerList(),
|
| + policy::POLICY_LEVEL_MANDATORY));
|
| + builder->WithRecommendedPrefs(new ConfigurationPolicyPrefStore(
|
| + policy_service,
|
| + g_browser_process->browser_policy_connector()->GetHandlerList(),
|
| + policy::POLICY_LEVEL_RECOMMENDED));
|
| #endif // ENABLE_CONFIGURATION_POLICY
|
|
|
| builder->WithAsync(async);
|
|
|