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

Unified Diff: device/bluetooth/dbus/bluetooth_media_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
Index: device/bluetooth/dbus/bluetooth_media_client.cc
diff --git a/device/bluetooth/dbus/bluetooth_media_client.cc b/device/bluetooth/dbus/bluetooth_media_client.cc
index 3815bc8778c8ada5c4da81aa1f42be2fd9454375..3f6aa401f683900c1a7374c4a6217be025bcf856 100644
--- a/device/bluetooth/dbus/bluetooth_media_client.cc
+++ b/device/bluetooth/dbus/bluetooth_media_client.cc
@@ -73,15 +73,15 @@ class BluetoothMediaClientImpl : public BluetoothMediaClient,
void ObjectAdded(const dbus::ObjectPath& object_path,
const std::string& interface_name) override {
VLOG(1) << "Remote Media added: " << object_path.value();
- FOR_EACH_OBSERVER(BluetoothMediaClient::Observer, observers_,
- MediaAdded(object_path));
+ for (auto& observer : observers_)
+ observer.MediaAdded(object_path);
}
void ObjectRemoved(const dbus::ObjectPath& object_path,
const std::string& interface_name) override {
VLOG(1) << "Remote Media removed: " << object_path.value();
- FOR_EACH_OBSERVER(BluetoothMediaClient::Observer, observers_,
- MediaRemoved(object_path));
+ for (auto& observer : observers_)
+ observer.MediaRemoved(object_path);
}
// BluetoothMediaClient overrides.

Powered by Google App Engine
This is Rietveld 408576698