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

Unified Diff: device/bluetooth/dbus/fake_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/fake_bluetooth_media_client.cc
diff --git a/device/bluetooth/dbus/fake_bluetooth_media_client.cc b/device/bluetooth/dbus/fake_bluetooth_media_client.cc
index 3b7a83b9a19a2c87f55ec8b3e82c7cb88424063f..7ca3a7a89ff21dc711167607f0efa4d1ed51e040 100644
--- a/device/bluetooth/dbus/fake_bluetooth_media_client.cc
+++ b/device/bluetooth/dbus/fake_bluetooth_media_client.cc
@@ -100,8 +100,8 @@ void FakeBluetoothMediaClient::SetVisible(bool visible) {
SetEndpointRegistered(endpoints_.begin()->second, false);
// Notifies observers about the change on |visible_|.
- FOR_EACH_OBSERVER(BluetoothMediaClient::Observer, observers_,
- MediaRemoved(object_path_));
+ for (auto& observer : observers_)
+ observer.MediaRemoved(object_path_);
}
void FakeBluetoothMediaClient::SetEndpointRegistered(
« no previous file with comments | « device/bluetooth/dbus/fake_bluetooth_input_client.cc ('k') | device/bluetooth/dbus/fake_bluetooth_media_transport_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698