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

Unified Diff: components/signin/core/browser/about_signin_internals.cc

Issue 2422943002: Remove usage of FOR_EACH_OBSERVER macro in components/signin (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/signin/core/browser/account_tracker_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/browser/about_signin_internals.cc
diff --git a/components/signin/core/browser/about_signin_internals.cc b/components/signin/core/browser/about_signin_internals.cc
index b6b897b63250ebc437b0896473cd51dfdfb392d1..d7c10777df616708af0742c68009dcf71e6f56d2 100644
--- a/components/signin/core/browser/about_signin_internals.cc
+++ b/components/signin/core/browser/about_signin_internals.cc
@@ -282,9 +282,8 @@ void AboutSigninInternals::NotifyObservers() {
FROM_HERE_WITH_EXPLICIT_FUNCTION(
"422460 AboutSigninInternals::NotifyObservers1"));
- FOR_EACH_OBSERVER(AboutSigninInternals::Observer,
- signin_observers_,
- OnSigninStateChanged(signin_status_value.get()));
+ for (auto& observer : signin_observers_)
+ observer.OnSigninStateChanged(signin_status_value.get());
}
std::unique_ptr<base::DictionaryValue> AboutSigninInternals::GetSigninStatus() {
@@ -400,9 +399,8 @@ void AboutSigninInternals::OnGaiaAccountsInCookieUpdated(
}
// Update the observers that the cookie's accounts are updated.
- FOR_EACH_OBSERVER(AboutSigninInternals::Observer,
- signin_observers_,
- OnCookieAccountsFetched(&cookie_status));
+ for (auto& observer : signin_observers_)
+ observer.OnCookieAccountsFetched(&cookie_status);
}
AboutSigninInternals::TokenInfo::TokenInfo(
« no previous file with comments | « no previous file | components/signin/core/browser/account_tracker_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698