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

Unified Diff: device/bluetooth/dbus/bluetooth_le_advertising_manager_client.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/dbus/bluetooth_input_client.cc ('k') | device/bluetooth/dbus/bluetooth_media_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/dbus/bluetooth_le_advertising_manager_client.cc
diff --git a/device/bluetooth/dbus/bluetooth_le_advertising_manager_client.cc b/device/bluetooth/dbus/bluetooth_le_advertising_manager_client.cc
index fcb39553a52b8d4f767d0010b0528230d1d2f63d..3488cc193653bc14ed6e24ba54ed28ed0fcf0d8f 100644
--- a/device/bluetooth/dbus/bluetooth_le_advertising_manager_client.cc
+++ b/device/bluetooth/dbus/bluetooth_le_advertising_manager_client.cc
@@ -150,16 +150,16 @@ class BluetoothAdvertisementManagerClientImpl
// interface is created. Informs observers.
void ObjectAdded(const dbus::ObjectPath& object_path,
const std::string& interface_name) override {
- FOR_EACH_OBSERVER(BluetoothLEAdvertisingManagerClient::Observer, observers_,
- AdvertisingManagerAdded(object_path));
+ for (auto& observer : observers_)
+ observer.AdvertisingManagerAdded(object_path);
}
// Called by dbus::ObjectManager when an object with the advertising manager
// interface is removed. Informs observers.
void ObjectRemoved(const dbus::ObjectPath& object_path,
const std::string& interface_name) override {
- FOR_EACH_OBSERVER(BluetoothLEAdvertisingManagerClient::Observer, observers_,
- AdvertisingManagerRemoved(object_path));
+ for (auto& observer : observers_)
+ observer.AdvertisingManagerRemoved(object_path);
}
// Called when a response for successful method call is received.
« no previous file with comments | « device/bluetooth/dbus/bluetooth_input_client.cc ('k') | device/bluetooth/dbus/bluetooth_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698