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

Unified Diff: device/bluetooth/test/mock_bluetooth_gatt_notify_session.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
Index: device/bluetooth/test/mock_bluetooth_gatt_notify_session.cc
diff --git a/device/bluetooth/test/mock_bluetooth_gatt_notify_session.cc b/device/bluetooth/test/mock_bluetooth_gatt_notify_session.cc
index 4123e2d342dbaaca59093d62c1ff4ac8538de20e..54726ae7335b4807f49ad4acbd398dd2a3e99950 100644
--- a/device/bluetooth/test/mock_bluetooth_gatt_notify_session.cc
+++ b/device/bluetooth/test/mock_bluetooth_gatt_notify_session.cc
@@ -40,9 +40,8 @@ void MockBluetoothGattNotifySession::DoNotify(
MockBluetoothAdapter* adapter,
MockBluetoothGattCharacteristic* characteristic,
const std::vector<uint8_t>& value) {
- FOR_EACH_OBSERVER(
- BluetoothAdapter::Observer, adapter->GetObservers(),
- GattCharacteristicValueChanged(adapter, characteristic, value));
+ for (auto& observer : adapter->GetObservers())
+ observer.GattCharacteristicValueChanged(adapter, characteristic, value);
}
} // namespace device
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_media_transport_client.cc ('k') | device/generic_sensor/platform_sensor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698