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

Unified Diff: chrome/browser/extensions/extension_service_unittest.cc

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 years 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/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());

Powered by Google App Engine
This is Rietveld 408576698