| Index: chrome/browser/prefs/testing_pref_store.cc
|
| diff --git a/chrome/browser/prefs/testing_pref_store.cc b/chrome/browser/prefs/testing_pref_store.cc
|
| index e85a8368364e8f255be2cb070297676c37cc5314..d08016914740a30e3c2459b19ca7f9556dd9b5ba 100644
|
| --- a/chrome/browser/prefs/testing_pref_store.cc
|
| +++ b/chrome/browser/prefs/testing_pref_store.cc
|
| @@ -55,9 +55,16 @@ bool TestingPrefStore::ReadOnly() 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();
|
| +}
|
| +
|
| bool TestingPrefStore::WritePrefs() {
|
| prefs_written_ = true;
|
| return prefs_written_;
|
| @@ -73,7 +80,7 @@ void TestingPrefStore::NotifyPrefValueChanged(const std::string& key) {
|
| }
|
|
|
| void TestingPrefStore::NotifyInitializationCompleted() {
|
| - FOR_EACH_OBSERVER(Observer, observers_, OnInitializationCompleted());
|
| + FOR_EACH_OBSERVER(Observer, observers_, OnInitializationCompleted(true));
|
| }
|
|
|
| void TestingPrefStore::ReportValueChanged(const std::string& key) {
|
|
|