summaryrefslogtreecommitdiffstats
path: root/chrome/test/testing_pref_service.h
diff options
context:
space:
mode:
authormnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-02 12:42:29 +0000
committermnissler@chromium.org <mnissler@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-02 12:42:29 +0000
commitb384cd63d4cac40e4bb5b8386c0980b2cb6f6d86 (patch)
treec5346bad76e1c3e17da136cb5bda8683a1d1b8a9 /chrome/test/testing_pref_service.h
parent87cc213e32c17d6cd593be45eb40fee4612e7b15 (diff)
downloadchromium_src-b384cd63d4cac40e4bb5b8386c0980b2cb6f6d86.zip
chromium_src-b384cd63d4cac40e4bb5b8386c0980b2cb6f6d86.tar.gz
chromium_src-b384cd63d4cac40e4bb5b8386c0980b2cb6f6d86.tar.bz2
Revert 67997 - Reduce the include footprint of pref_service.h
This removes the pref_value_store.h header from the pref_service.h include list and cleans up any users that were getting the MessageLoop and BrowserThread definitions indirectly through pref_service.h BUG=64893 TEST=compiles and passes tests Review URL: http://codereview.chromium.org/5461001 TBR=mnissler@chromium.org Review URL: http://codereview.chromium.org/5575001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67998 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_pref_service.h')
-rw-r--r--chrome/test/testing_pref_service.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/test/testing_pref_service.h b/chrome/test/testing_pref_service.h
index 6c60fcf..069ff32 100644
--- a/chrome/test/testing_pref_service.h
+++ b/chrome/test/testing_pref_service.h
@@ -19,6 +19,18 @@ class PrefStore;
// (managed, extension, user) conveniently.
class TestingPrefService : public PrefService {
public:
+ // Subclass to allow directly setting PrefStores.
+ class TestingPrefValueStore : public PrefValueStore {
+ public:
+ TestingPrefValueStore(PrefStore* managed_prefs,
+ PrefStore* device_management_prefs,
+ PrefStore* extension_prefs,
+ PrefStore* command_line_prefs,
+ PrefStore* user_prefs,
+ PrefStore* recommended_prefs,
+ PrefStore* default_prefs);
+ };
+
// Create an empty instance.
TestingPrefService();