Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: components/autofill/core/browser/webdata/autofill_webdata_service.cc

Issue 2412073003: Remove FOR_EACH_OBSERVER from autofill and password_manager components (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/webdata/autofill_webdata_service.cc
diff --git a/components/autofill/core/browser/webdata/autofill_webdata_service.cc b/components/autofill/core/browser/webdata/autofill_webdata_service.cc
index fa84a59af63df178eee393f0c96b8300569885e2..22377e9e3af4a89c2c34ab9c6188bfae4117beee 100644
--- a/components/autofill/core/browser/webdata/autofill_webdata_service.cc
+++ b/components/autofill/core/browser/webdata/autofill_webdata_service.cc
@@ -295,17 +295,15 @@ AutofillWebDataService::~AutofillWebDataService() {
void AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread() {
DCHECK(ui_thread_->BelongsToCurrentThread());
- FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread,
- ui_observer_list_,
- AutofillMultipleChanged());
+ for (auto& ui_observer : ui_observer_list_)
+ ui_observer.AutofillMultipleChanged();
}
void AutofillWebDataService::NotifySyncStartedOnUIThread(
syncer::ModelType model_type) {
DCHECK(ui_thread_->BelongsToCurrentThread());
- FOR_EACH_OBSERVER(AutofillWebDataServiceObserverOnUIThread,
- ui_observer_list_,
- SyncStarted(model_type));
+ for (auto& ui_observer : ui_observer_list_)
+ ui_observer.SyncStarted(model_type);
}
} // namespace autofill

Powered by Google App Engine
This is Rietveld 408576698