| Index: chrome/browser/prefs/testing_pref_store.cc
|
| diff --git a/chrome/browser/prefs/dummy_pref_store.cc b/chrome/browser/prefs/testing_pref_store.cc
|
| similarity index 50%
|
| rename from chrome/browser/prefs/dummy_pref_store.cc
|
| rename to chrome/browser/prefs/testing_pref_store.cc
|
| index 3a0a81a8849d6f8b38613bdedacafc4d0f6b925a..00182ef5614581695ad5a51748f5bbd69d5c1eb7 100644
|
| --- a/chrome/browser/prefs/dummy_pref_store.cc
|
| +++ b/chrome/browser/prefs/testing_pref_store.cc
|
| @@ -2,21 +2,29 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/prefs/dummy_pref_store.h"
|
| +#include "chrome/browser/prefs/testing_pref_store.h"
|
|
|
| #include "base/values.h"
|
|
|
| -DummyPrefStore::DummyPrefStore()
|
| +TestingPrefStore::TestingPrefStore()
|
| : prefs_(new DictionaryValue()),
|
| read_only_(true),
|
| prefs_written_(false) { }
|
|
|
| -PrefStore::PrefReadError DummyPrefStore::ReadPrefs() {
|
| +PrefStore::PrefReadError TestingPrefStore::ReadPrefs() {
|
| prefs_.reset(new DictionaryValue());
|
| return PrefStore::PREF_READ_ERROR_NONE;
|
| }
|
|
|
| -bool DummyPrefStore::WritePrefs() {
|
| +bool TestingPrefStore::WritePrefs() {
|
| prefs_written_ = true;
|
| return prefs_written_;
|
| }
|
| +
|
| +void TestingPrefStore::NotifyPrefValueChanged(const std::string& key) {
|
| + PrefStoreBase::NotifyPrefValueChanged(key);
|
| +}
|
| +
|
| +void TestingPrefStore::NotifyInitializationCompleted() {
|
| + PrefStoreBase::NotifyInitializationCompleted();
|
| +}
|
|
|