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

Unified Diff: net/nqe/network_quality_store.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/log/net_log.cc ('k') | net/proxy/polling_proxy_config_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/nqe/network_quality_store.cc
diff --git a/net/nqe/network_quality_store.cc b/net/nqe/network_quality_store.cc
index 7a1c253bdbaf7af91de5f69f800dc46c11e56c5c..01b50054a5e758e6757633c0d723063dd8c5b0d1 100644
--- a/net/nqe/network_quality_store.cc
+++ b/net/nqe/network_quality_store.cc
@@ -60,9 +60,8 @@ void NetworkQualityStore::Add(
DCHECK_LE(cached_network_qualities_.size(),
static_cast<size_t>(kMaximumNetworkQualityCacheSize));
- FOR_EACH_OBSERVER(
- NetworkQualitiesCacheObserver, network_qualities_cache_observer_list_,
- OnChangeInCachedNetworkQuality(network_id, cached_network_quality));
+ for (auto& observer : network_qualities_cache_observer_list_)
+ observer.OnChangeInCachedNetworkQuality(network_id, cached_network_quality);
}
bool NetworkQualityStore::GetById(
« no previous file with comments | « net/log/net_log.cc ('k') | net/proxy/polling_proxy_config_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698