| Index: components/physical_web/data_source/physical_web_data_source_impl.cc
|
| diff --git a/components/physical_web/data_source/physical_web_data_source_impl.cc b/components/physical_web/data_source/physical_web_data_source_impl.cc
|
| index 744afcc60d2fe5608d9371ec617d0096d60c6e84..600a2b5e61c069949ca6e1827df3935e71ab3324 100644
|
| --- a/components/physical_web/data_source/physical_web_data_source_impl.cc
|
| +++ b/components/physical_web/data_source/physical_web_data_source_impl.cc
|
| @@ -22,16 +22,18 @@ void PhysicalWebDataSourceImpl::UnregisterListener(
|
| }
|
|
|
| void PhysicalWebDataSourceImpl::NotifyOnFound(const std::string& url) {
|
| - FOR_EACH_OBSERVER(PhysicalWebListener, observer_list_, OnFound(url));
|
| + for (PhysicalWebListener& observer : observer_list_)
|
| + observer.OnFound(url);
|
| }
|
|
|
| void PhysicalWebDataSourceImpl::NotifyOnLost(const std::string& url) {
|
| - FOR_EACH_OBSERVER(PhysicalWebListener, observer_list_, OnLost(url));
|
| + for (PhysicalWebListener& observer : observer_list_)
|
| + observer.OnLost(url);
|
| }
|
|
|
| void PhysicalWebDataSourceImpl::NotifyOnDistanceChanged(
|
| const std::string& url,
|
| double distance_estimate) {
|
| - FOR_EACH_OBSERVER(PhysicalWebListener, observer_list_,
|
| - OnDistanceChanged(url, distance_estimate));
|
| + for (PhysicalWebListener& observer : observer_list_)
|
| + observer.OnDistanceChanged(url, distance_estimate);
|
| }
|
|
|