summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/test_extension_prefs.cc
diff options
context:
space:
mode:
authorpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 16:48:49 +0000
committerpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-12 16:48:49 +0000
commitdb198b2722f4592f6b76294f6a7f9c868e05bc15 (patch)
treece5c93732e2d202548b6e2d69ab6a80cc06ca7ea /chrome/browser/extensions/test_extension_prefs.cc
parentef40c4da832d2082dffe1262b0e2dbf64b5e8031 (diff)
downloadchromium_src-db198b2722f4592f6b76294f6a7f9c868e05bc15.zip
chromium_src-db198b2722f4592f6b76294f6a7f9c868e05bc15.tar.gz
chromium_src-db198b2722f4592f6b76294f6a7f9c868e05bc15.tar.bz2
Add an ExtensionPrefStore, layered between the user prefs and the managed prefs, to manage preferences set by extensions.
Update various callers of the PrefValueStore constructor accordingly. The initial user will be the proxy extension API. BUG=266 TEST=covered by unit tests Review URL: http://codereview.chromium.org/2823037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52088 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/test_extension_prefs.cc')
-rw-r--r--chrome/browser/extensions/test_extension_prefs.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/chrome/browser/extensions/test_extension_prefs.cc b/chrome/browser/extensions/test_extension_prefs.cc
index 97c47e8..8561a4b 100644
--- a/chrome/browser/extensions/test_extension_prefs.cc
+++ b/chrome/browser/extensions/test_extension_prefs.cc
@@ -42,12 +42,7 @@ void TestExtensionPrefs::RecreateExtensionPrefs() {
}
// Create a |PrefService| instance that contains only user defined values.
- pref_service_.reset(new PrefService(new PrefValueStore(
- NULL, /* no managed preference values */
- new JsonPrefStore( /* user defined preferemnce values*/
- preferences_file_,
- ChromeThread::GetMessageLoopProxyForThread(ChromeThread::FILE)),
- NULL /* no suggested preference values*/)));
+ pref_service_.reset(PrefService::CreateUserPrefService(preferences_file_));
ExtensionPrefs::RegisterUserPrefs(pref_service_.get());
prefs_.reset(new ExtensionPrefs(pref_service_.get(), temp_dir_.path()));
}