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

Unified Diff: device/generic_sensor/platform_sensor.cc

Issue 2423793002: Remove usage of FOR_EACH_OBSERVER macro in device/ (Closed)
Patch Set: rebase 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 | « device/bluetooth/test/mock_bluetooth_gatt_notify_session.cc ('k') | device/hid/hid_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/generic_sensor/platform_sensor.cc
diff --git a/device/generic_sensor/platform_sensor.cc b/device/generic_sensor/platform_sensor.cc
index ced76bbffdebdc802e3e8de19681dc1375211d33..eb98f34258d08d5b6d0498831d4a10d6ecc60d45 100644
--- a/device/generic_sensor/platform_sensor.cc
+++ b/device/generic_sensor/platform_sensor.cc
@@ -105,7 +105,8 @@ void PlatformSensor::NotifySensorReadingChanged() {
}
void PlatformSensor::NotifySensorError() {
- FOR_EACH_OBSERVER(Client, clients_, OnSensorError());
+ for (auto& observer : clients_)
+ observer.OnSensorError();
}
bool PlatformSensor::UpdateSensorInternal(const ConfigMap& configurations) {
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_gatt_notify_session.cc ('k') | device/hid/hid_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698