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

Unified Diff: net/cert/sth_distributor.cc

Issue 2423713002: Remove usage of FOR_EACH_OBSERVER macro in net (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 | « net/base/sdch_manager.cc ('k') | net/dns/mdns_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/sth_distributor.cc
diff --git a/net/cert/sth_distributor.cc b/net/cert/sth_distributor.cc
index c511e27a1635036b016276fe489fa9e86e5d4c80..61b2ce833709e2610783a0bbee18250d89663bce 100644
--- a/net/cert/sth_distributor.cc
+++ b/net/cert/sth_distributor.cc
@@ -35,7 +35,8 @@ void STHDistributor::NewSTHObserved(const SignedTreeHead& sth) {
else
*it = sth;
- FOR_EACH_OBSERVER(STHObserver, observer_list_, NewSTHObserved(sth));
+ for (auto& observer : observer_list_)
+ observer.NewSTHObserved(sth);
if (sth.log_id.compare(0, sth.log_id.size(),
reinterpret_cast<const char*>(kPilotLogID),
« no previous file with comments | « net/base/sdch_manager.cc ('k') | net/dns/mdns_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698