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

Unified Diff: ios/public/provider/chrome/browser/signin/chrome_identity_service.mm

Issue 2420013005: Remove usage of FOR_EACH_OBSERVER macro in ios/ (Closed)
Patch Set: typo 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 | « ios/net/cookies/cookie_store_ios.mm ('k') | ios/web/active_state_manager_impl.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/public/provider/chrome/browser/signin/chrome_identity_service.mm
diff --git a/ios/public/provider/chrome/browser/signin/chrome_identity_service.mm b/ios/public/provider/chrome/browser/signin/chrome_identity_service.mm
index 4a93eada345fb1652cff325c64d89c9111b268e2..e19e1eee4c25a73442f3d8f918f4a9fc412b5ec4 100644
--- a/ios/public/provider/chrome/browser/signin/chrome_identity_service.mm
+++ b/ios/public/provider/chrome/browser/signin/chrome_identity_service.mm
@@ -11,8 +11,8 @@ namespace ios {
ChromeIdentityService::ChromeIdentityService() {}
ChromeIdentityService::~ChromeIdentityService() {
- FOR_EACH_OBSERVER(Observer, observer_list_,
- OnChromeIdentityServiceWillBeDestroyed());
+ for (auto& observer : observer_list_)
+ observer.OnChromeIdentityServiceWillBeDestroyed();
}
void ChromeIdentityService::DismissDialogs() {}
@@ -131,18 +131,20 @@ bool ChromeIdentityService::IsInvalidGrantError(NSDictionary* user_info) {
}
void ChromeIdentityService::FireIdentityListChanged() {
- FOR_EACH_OBSERVER(Observer, observer_list_, OnIdentityListChanged());
+ for (auto& observer : observer_list_)
+ observer.OnIdentityListChanged();
}
void ChromeIdentityService::FireAccessTokenRefreshFailed(
ChromeIdentity* identity,
NSDictionary* user_info) {
- FOR_EACH_OBSERVER(Observer, observer_list_,
- OnAccessTokenRefreshFailed(identity, user_info));
+ for (auto& observer : observer_list_)
+ observer.OnAccessTokenRefreshFailed(identity, user_info);
}
void ChromeIdentityService::FireProfileDidUpdate(ChromeIdentity* identity) {
- FOR_EACH_OBSERVER(Observer, observer_list_, OnProfileUpdate(identity));
+ for (auto& observer : observer_list_)
+ observer.OnProfileUpdate(identity);
}
} // namespace ios
« no previous file with comments | « ios/net/cookies/cookie_store_ios.mm ('k') | ios/web/active_state_manager_impl.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698