summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc')
-rw-r--r--chromium/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chromium/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc b/chromium/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
index cbc29eb08e6..ed77bc7619b 100644
--- a/chromium/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
+++ b/chromium/chrome/browser/spellchecker/spellcheck_custom_dictionary.cc
@@ -18,8 +18,8 @@
#include "chrome/common/chrome_constants.h"
#include "components/spellcheck/browser/spellcheck_host_metrics.h"
#include "components/spellcheck/common/spellcheck_common.h"
-#include "components/sync/api/sync_change.h"
-#include "components/sync/api/sync_error_factory.h"
+#include "components/sync/model/sync_change.h"
+#include "components/sync/model/sync_error_factory.h"
#include "components/sync/protocol/sync.pb.h"
#include "content/public/browser/browser_thread.h"
@@ -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);
}