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

Unified Diff: chrome/browser/extensions/test_extension_prefs.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: chrome/browser/extensions/test_extension_prefs.cc
diff --git a/chrome/browser/extensions/test_extension_prefs.cc b/chrome/browser/extensions/test_extension_prefs.cc
index d525c0701800b20da35527aea4d6cc6ea8e8144b..73441e7eff461bb7df2aa075d88f0eeaa2add6b3 100644
--- a/chrome/browser/extensions/test_extension_prefs.cc
+++ b/chrome/browser/extensions/test_extension_prefs.cc
@@ -104,10 +104,10 @@ void TestExtensionPrefs::RecreateExtensionPrefs() {
extension_pref_value_map_.reset(new ExtensionPrefValueMap);
PrefServiceMockBuilder builder;
- builder.WithUserFilePrefs(preferences_file_, task_runner_.get());
- builder.WithExtensionPrefs(
+ builder.SetUserPrefsFile(preferences_file_, task_runner_.get());
+ builder.set_extension_prefs(
new ExtensionPrefStore(extension_pref_value_map_.get(), false));
- pref_service_.reset(builder.CreateSyncable(pref_registry_.get()));
+ pref_service_ = builder.CreateSyncable(pref_registry_.get()).Pass();
Nico 2013/11/14 14:41:40 Why the With -> set_ change? I thought builders ar
Ilya Sherman 2013/11/14 22:34:50 In practice, these builders were almost never used
prefs_.reset(ExtensionPrefs::Create(
pref_service_.get(),
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | chrome/browser/net/pref_proxy_config_tracker_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698