Index: chrome/browser/extensions/extension_service_unittest.cc |
diff --git a/chrome/browser/extensions/extension_service_unittest.cc b/chrome/browser/extensions/extension_service_unittest.cc |
index 78d2efd3575d1d8f445c753da3779f982db2c010..495a6b6d6e242078e790552d861496cdf14bd984 100644 |
--- a/chrome/browser/extensions/extension_service_unittest.cc |
+++ b/chrome/browser/extensions/extension_service_unittest.cc |
@@ -425,9 +425,10 @@ void ExtensionServiceTestBase::InitializeExtensionService( |
bool autoupdate_enabled) { |
TestingProfile::Builder profile_builder; |
// Create a PrefService that only contains user defined preference values. |
- scoped_ptr<PrefService> prefs( |
- PrefServiceMockBuilder().WithUserFilePrefs( |
- pref_file, loop_.message_loop_proxy()).Create()); |
+ PrefServiceMockBuilder builder; |
+ builder.WithUserFilePrefs( |
+ pref_file, loop_.message_loop_proxy()); |
+ scoped_ptr<PrefServiceSyncable> prefs(builder.CreateSyncable()); |
Profile::RegisterUserPrefs(prefs.get()); |
chrome::RegisterUserPrefs(prefs.get()); |
profile_builder.SetPrefService(prefs.Pass()); |