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

Unified Diff: device/bluetooth/bluez/bluetooth_advertisement_bluez.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/bluez/bluetooth_advertisement_bluez.cc
diff --git a/device/bluetooth/bluez/bluetooth_advertisement_bluez.cc b/device/bluetooth/bluez/bluetooth_advertisement_bluez.cc
index d03fd954b132412fd3f541ea2a364b65667f7a55..0adece730c1316d68b7957782b9b192f4bcf47e0 100644
--- a/device/bluetooth/bluez/bluetooth_advertisement_bluez.cc
+++ b/device/bluetooth/bluez/bluetooth_advertisement_bluez.cc
@@ -130,8 +130,8 @@ void BluetoothAdvertisementBlueZ::Unregister(
void BluetoothAdvertisementBlueZ::Released() {
LOG(WARNING) << "Advertisement released.";
provider_.reset();
- FOR_EACH_OBSERVER(BluetoothAdvertisement::Observer, observers_,
- AdvertisementReleased(this));
+ for (auto& observer : observers_)
+ observer.AdvertisementReleased(this);
}
} // namespace bluez
« no previous file with comments | « device/bluetooth/bluez/bluetooth_adapter_bluez.cc ('k') | device/bluetooth/dbus/bluetooth_adapter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698