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

Unified Diff: components/proximity_auth/cryptauth/mock_cryptauth_client.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/mock_cryptauth_client.cc
diff --git a/components/proximity_auth/cryptauth/mock_cryptauth_client.cc b/components/proximity_auth/cryptauth/mock_cryptauth_client.cc
index 51dd4eb8201aaae8a7eb39ef33388b890683d263..4480623e7d01dfed541eae82ff662c705edb76d0 100644
--- a/components/proximity_auth/cryptauth/mock_cryptauth_client.cc
+++ b/components/proximity_auth/cryptauth/mock_cryptauth_client.cc
@@ -30,8 +30,8 @@ std::unique_ptr<CryptAuthClient> MockCryptAuthClientFactory::CreateInstance() {
else
client.reset(new testing::NiceMock<MockCryptAuthClient>());
- FOR_EACH_OBSERVER(Observer, observer_list_,
- OnCryptAuthClientCreated(client.get()));
+ for (auto& observer : observer_list_)
+ observer.OnCryptAuthClientCreated(client.get());
return std::move(client);
}
« no previous file with comments | « components/proximity_auth/cryptauth/fake_cryptauth_gcm_manager.cc ('k') | components/proximity_auth/logging/log_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698