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

Unified Diff: components/autofill/core/browser/autofill_test_utils.cc

Issue 64193003: Clean up PrefServiceBuilder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix indentation Created 7 years, 1 month 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
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,

Powered by Google App Engine
This is Rietveld 408576698