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

Unified Diff: chrome/browser/extensions/api/mdns/dns_sd_registry.cc

Issue 2422963002: Remove FOR_EACH_OBSERVER macro usage in chrome/browser/extensions (Closed)
Patch Set: extensions 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 | « chrome/browser/extensions/api/identity/identity_api.cc ('k') | chrome/browser/extensions/blacklist.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/mdns/dns_sd_registry.cc
diff --git a/chrome/browser/extensions/api/mdns/dns_sd_registry.cc b/chrome/browser/extensions/api/mdns/dns_sd_registry.cc
index e578146cb945563eb754eea4e66b18a8b98685c2..2bafc7c4937b0d1e71492e5bf5f13697590b7040 100644
--- a/chrome/browser/extensions/api/mdns/dns_sd_registry.cc
+++ b/chrome/browser/extensions/api/mdns/dns_sd_registry.cc
@@ -230,8 +230,10 @@ void DnsSdRegistry::ServicesFlushed(const std::string& service_type) {
void DnsSdRegistry::DispatchApiEvent(const std::string& service_type) {
VLOG(1) << "DispatchApiEvent: service_type: " << service_type;
- FOR_EACH_OBSERVER(DnsSdObserver, observers_, OnDnsSdEvent(
- service_type, service_data_map_[service_type]->GetServiceList()));
+ for (auto& observer : observers_) {
+ observer.OnDnsSdEvent(service_type,
+ service_data_map_[service_type]->GetServiceList());
+ }
}
bool DnsSdRegistry::IsRegistered(const std::string& service_type) {
« no previous file with comments | « chrome/browser/extensions/api/identity/identity_api.cc ('k') | chrome/browser/extensions/blacklist.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698