| Index: base/prefs/pref_service.cc
|
| diff --git a/base/prefs/pref_service.cc b/base/prefs/pref_service.cc
|
| index 8a2c742109b3262261f98c58d1c6a659e5a08e60..a8e56d0b370680f9400e8432014d08b357fc4179 100644
|
| --- a/base/prefs/pref_service.cc
|
| +++ b/base/prefs/pref_service.cc
|
| @@ -67,7 +67,9 @@ PrefService::~PrefService() {
|
| }
|
|
|
| void PrefService::InitFromStorage(bool async) {
|
| - if (!async) {
|
| + if (user_pref_store_->IsInitializationComplete()) {
|
| + read_error_callback_.Run(user_pref_store_->GetReadError());
|
| + } else if (!async) {
|
| read_error_callback_.Run(user_pref_store_->ReadPrefs());
|
| } else {
|
| // Guarantee that initialization happens after this function returned.
|
|
|