| Index: chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
|
| diff --git a/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc b/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
|
| index 63d4b30de6bad66a6fb7619c8d92165885f1d9b7..ed77bc7619bd22a94c62ab7768e40b1b956943bc 100644
|
| --- a/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
|
| +++ b/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
|
| @@ -425,7 +425,8 @@ void SpellcheckCustomDictionary::OnLoaded(
|
| Apply(dictionary_change);
|
| Sync(dictionary_change);
|
| is_loaded_ = true;
|
| - FOR_EACH_OBSERVER(Observer, observers_, OnCustomDictionaryLoaded());
|
| + for (Observer& observer : observers_)
|
| + observer.OnCustomDictionaryLoaded();
|
| if (!result->is_valid_file) {
|
| // Save cleaned up data only after startup.
|
| fix_invalid_file_.Reset(
|
| @@ -522,7 +523,6 @@ void SpellcheckCustomDictionary::Notify(const Change& dictionary_change) {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| if (!IsLoaded() || dictionary_change.empty())
|
| return;
|
| - FOR_EACH_OBSERVER(Observer,
|
| - observers_,
|
| - OnCustomDictionaryChanged(dictionary_change));
|
| + for (Observer& observer : observers_)
|
| + observer.OnCustomDictionaryChanged(dictionary_change);
|
| }
|
|
|