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

Unified Diff: components/proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc

Issue 2423353002: Reduce usage of FOR_EACH_OBSERVER macro in 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/proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc
diff --git a/components/proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc b/components/proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc
index 806e1be5ac63b9262326bc486fafb0d4c994cce1..d1e85c63235713eddb2cd3fd68d84bb74f0c51c6 100644
--- a/components/proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc
+++ b/components/proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc
@@ -36,15 +36,18 @@ void FakeCryptAuthGCMManager::CompleteRegistration(
registration_in_progress_ = false;
registration_id_ = registration_id;
bool success = !registration_id_.empty();
- FOR_EACH_OBSERVER(Observer, observers_, OnGCMRegistrationResult(success));
+ for (auto& observer : observers_)
+ observer.OnGCMRegistrationResult(success);
}
void FakeCryptAuthGCMManager::PushReenrollMessage() {
- FOR_EACH_OBSERVER(Observer, observers_, OnReenrollMessage());
+ for (auto& observer : observers_)
+ observer.OnReenrollMessage();
}
void FakeCryptAuthGCMManager::PushResyncMessage() {
- FOR_EACH_OBSERVER(Observer, observers_, OnResyncMessage());
+ for (auto& observer : observers_)
+ observer.OnResyncMessage();
}
} // namespace proximity_auth

Powered by Google App Engine
This is Rietveld 408576698