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

Unified Diff: components/prefs/testing_pref_service.cc

Issue 2479113002: Make extensions DSE persistent in browser prefs (Closed)
Patch Set: Fixed after review, round 7 Created 4 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: components/prefs/testing_pref_service.cc
diff --git a/components/prefs/testing_pref_service.cc b/components/prefs/testing_pref_service.cc
index 1dd760e72d65ba0d61d13d9b4bb7f2d9474f4aa4..fdaa33b0fa277f1252ba342c388324cf9cb968ed 100644
--- a/components/prefs/testing_pref_service.cc
+++ b/components/prefs/testing_pref_service.cc
@@ -15,6 +15,7 @@
template <>
TestingPrefServiceBase<PrefService, PrefRegistry>::TestingPrefServiceBase(
TestingPrefStore* managed_prefs,
+ TestingPrefStore* extension_prefs,
TestingPrefStore* user_prefs,
TestingPrefStore* recommended_prefs,
PrefRegistry* pref_registry,
@@ -23,7 +24,7 @@ TestingPrefServiceBase<PrefService, PrefRegistry>::TestingPrefServiceBase(
pref_notifier,
new PrefValueStore(managed_prefs,
NULL,
- NULL,
+ extension_prefs,
NULL,
user_prefs,
recommended_prefs,
@@ -35,6 +36,7 @@ TestingPrefServiceBase<PrefService, PrefRegistry>::TestingPrefServiceBase(
PrefRegistry>::HandleReadError),
false),
managed_prefs_(managed_prefs),
+ extension_prefs_(extension_prefs),
user_prefs_(user_prefs),
recommended_prefs_(recommended_prefs) {}
@@ -43,6 +45,7 @@ TestingPrefServiceSimple::TestingPrefServiceSimple()
new TestingPrefStore(),
new TestingPrefStore(),
new TestingPrefStore(),
+ new TestingPrefStore(),
new PrefRegistrySimple(),
new PrefNotifierImpl()) {}

Powered by Google App Engine
This is Rietveld 408576698