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

Unified Diff: chrome/browser/prefs/pref_service_mock_builder.cc

Issue 7096013: Allow device policy code to be optionally included. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make changes requested by torne. Created 9 years, 7 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
« no previous file with comments | « chrome/browser/policy/policy_stubs.cc ('k') | chrome/browser/prefs/pref_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/pref_service_mock_builder.cc
diff --git a/chrome/browser/prefs/pref_service_mock_builder.cc b/chrome/browser/prefs/pref_service_mock_builder.cc
index 66e3e99c79e36666788bcfb48ace5d31b8b9ce21..edffa8011d0938545fb742f54615b22bed91a928 100644
--- a/chrome/browser/prefs/pref_service_mock_builder.cc
+++ b/chrome/browser/prefs/pref_service_mock_builder.cc
@@ -63,14 +63,15 @@ PrefServiceMockBuilder::WithRecommendedCloudPrefs(PrefStore* store) {
PrefServiceMockBuilder&
PrefServiceMockBuilder::WithManagedPlatformProvider(
policy::ConfigurationPolicyProvider* provider) {
- managed_platform_prefs_ = new policy::ConfigurationPolicyPrefStore(provider);
+ managed_platform_prefs_ = policy::ConfigurationPolicyPrefStore::Create(
+ provider);
return *this;
}
PrefServiceMockBuilder&
PrefServiceMockBuilder::WithManagedCloudProvider(
policy::ConfigurationPolicyProvider* provider) {
- managed_cloud_prefs_ = new policy::ConfigurationPolicyPrefStore(provider);
+ managed_cloud_prefs_ = policy::ConfigurationPolicyPrefStore::Create(provider);
return *this;
}
@@ -78,14 +79,15 @@ PrefServiceMockBuilder&
PrefServiceMockBuilder::WithRecommendedPlatformProvider(
policy::ConfigurationPolicyProvider* provider) {
recommended_platform_prefs_ =
- new policy::ConfigurationPolicyPrefStore(provider);
+ policy::ConfigurationPolicyPrefStore::Create(provider);
return *this;
}
PrefServiceMockBuilder&
PrefServiceMockBuilder::WithRecommendedCloudProvider(
policy::ConfigurationPolicyProvider* provider) {
- recommended_cloud_prefs_ = new policy::ConfigurationPolicyPrefStore(provider);
+ recommended_cloud_prefs_ = policy::ConfigurationPolicyPrefStore::Create(
+ provider);
return *this;
}
« no previous file with comments | « chrome/browser/policy/policy_stubs.cc ('k') | chrome/browser/prefs/pref_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698