summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prefs
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 15:59:05 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-18 15:59:05 +0000
commit3e58a3a59bd6ba6429193af10630ad35c98af248 (patch)
tree19e561531e3f633a1550cf986d844f71a10b79fa /chrome/browser/prefs
parent68793e7203736161f2298d089d873fb4c96f6776 (diff)
downloadchromium_src-3e58a3a59bd6ba6429193af10630ad35c98af248.zip
chromium_src-3e58a3a59bd6ba6429193af10630ad35c98af248.tar.gz
chromium_src-3e58a3a59bd6ba6429193af10630ad35c98af248.tar.bz2
Add ManagedModePolicyProvider and extension API to get and set policies.
BUG=128318 TEST=none Review URL: https://chromiumcodereview.appspot.com/10510006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142720 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/prefs')
-rw-r--r--chrome/browser/prefs/testing_pref_store.cc3
-rw-r--r--chrome/browser/prefs/testing_pref_store.h3
2 files changed, 0 insertions, 6 deletions
diff --git a/chrome/browser/prefs/testing_pref_store.cc b/chrome/browser/prefs/testing_pref_store.cc
index 3b95a44..59952e6 100644
--- a/chrome/browser/prefs/testing_pref_store.cc
+++ b/chrome/browser/prefs/testing_pref_store.cc
@@ -9,7 +9,6 @@
TestingPrefStore::TestingPrefStore()
: read_only_(true),
- prefs_written_(false),
init_complete_(false) {
}
@@ -65,14 +64,12 @@ PersistentPrefStore::PrefReadError TestingPrefStore::GetReadError() const {
}
PersistentPrefStore::PrefReadError TestingPrefStore::ReadPrefs() {
- prefs_.Clear();
NotifyInitializationCompleted();
return PersistentPrefStore::PREF_READ_ERROR_NONE;
}
void TestingPrefStore::ReadPrefsAsync(ReadErrorDelegate* error_delegate_raw) {
scoped_ptr<ReadErrorDelegate> error_delegate(error_delegate_raw);
- prefs_.Clear();
NotifyInitializationCompleted();
}
diff --git a/chrome/browser/prefs/testing_pref_store.h b/chrome/browser/prefs/testing_pref_store.h
index 0254a62..752392e 100644
--- a/chrome/browser/prefs/testing_pref_store.h
+++ b/chrome/browser/prefs/testing_pref_store.h
@@ -74,9 +74,6 @@ class TestingPrefStore : public PersistentPrefStore {
// Flag that indicates if the PrefStore is read-only
bool read_only_;
- // Flag that indicates if the method WritePrefs was called.
- bool prefs_written_;
-
// Whether initialization has been completed.
bool init_complete_;