Index: components/autofill/core/browser/autofill_test_utils.cc |
diff --git a/components/autofill/core/browser/autofill_test_utils.cc b/components/autofill/core/browser/autofill_test_utils.cc |
index df7a1e2f6e8c429794b754301b67d6a81501e78c..a2e2143afee974e4ed767595d3531aa22574415a 100644 |
--- a/components/autofill/core/browser/autofill_test_utils.cc |
+++ b/components/autofill/core/browser/autofill_test_utils.cc |
@@ -34,9 +34,9 @@ scoped_ptr<PrefService> PrefServiceForTesting() { |
scoped_refptr<user_prefs::PrefRegistrySyncable> registry( |
new user_prefs::PrefRegistrySyncable()); |
AutofillManager::RegisterProfilePrefs(registry.get()); |
- PrefServiceBuilder builder; |
- builder.WithUserPrefs(new TestingPrefStore()); |
- return scoped_ptr<PrefService>(builder.Create(registry.get())); |
+ base::PrefServiceBuilder builder; |
+ builder.set_user_prefs(make_scoped_refptr(new TestingPrefStore())); |
+ return builder.Create(registry.get()); |
} |
void CreateTestFormField(const char* label, |