Index: base/prefs/json_pref_store.cc |
diff --git a/base/prefs/json_pref_store.cc b/base/prefs/json_pref_store.cc |
index 0703075846fd59f95344060ecf8d6aafa60d8911..b0a16cc11431e01fd8661949388c11cdc972f156 100644 |
--- a/base/prefs/json_pref_store.cc |
+++ b/base/prefs/json_pref_store.cc |
@@ -314,8 +314,8 @@ void JsonPrefStore::OnFileRead(base::Value* value_owned, |
NOTREACHED() << "Unknown error: " << error; |
} |
- if (pref_filter_) |
- pref_filter_->FilterOnLoad(prefs_.get()); |
+ if (pref_filter_ && pref_filter_->FilterOnLoad(prefs_.get())) |
+ writer_.ScheduleWrite(this); |
if (error_delegate_.get() && error != PREF_READ_ERROR_NONE) |
error_delegate_->OnError(error); |