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

Unified Diff: components/autofill/core/browser/personal_data_manager.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
« no previous file with comments | « no previous file | components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/personal_data_manager.cc
diff --git a/components/autofill/core/browser/personal_data_manager.cc b/components/autofill/core/browser/personal_data_manager.cc
index 7efb5d7be132669eb10c90db5595307a6595823e..bb45bbe13d6ea7fde8505674d498d91db83b94e5 100644
--- a/components/autofill/core/browser/personal_data_manager.cc
+++ b/components/autofill/core/browser/personal_data_manager.cc
@@ -449,8 +449,8 @@ bool PersonalDataManager::ImportFormData(
if (cc_import || address_import)
return true;
- FOR_EACH_OBSERVER(PersonalDataManagerObserver, observers_,
- OnInsufficientFormData());
+ for (PersonalDataManagerObserver& observer : observers_)
+ observer.OnInsufficientFormData();
return false;
}
@@ -1246,8 +1246,8 @@ std::string PersonalDataManager::SaveImportedProfile(
}
void PersonalDataManager::NotifyPersonalDataChanged() {
- FOR_EACH_OBSERVER(PersonalDataManagerObserver, observers_,
- OnPersonalDataChanged());
+ for (PersonalDataManagerObserver& observer : observers_)
+ observer.OnPersonalDataChanged();
}
std::string PersonalDataManager::SaveImportedCreditCard(
« no previous file with comments | « no previous file | components/autofill/core/browser/webdata/autofill_webdata_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698