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

Unified Diff: chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc

Issue 2422963002: Remove FOR_EACH_OBSERVER macro usage in chrome/browser/extensions (Closed)
Patch Set: extensions 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: chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc
diff --git a/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc b/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc
index 8537677e546f4c96e6919030ddcdf92e00e8ae3b..c513dbe28d16490940ef19e5f2d5d48a24c60a92 100644
--- a/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc
+++ b/chrome/browser/extensions/api/cast_devices_private/cast_devices_private_api.cc
@@ -77,8 +77,8 @@ void CastDeviceUpdateListeners::RemoveObserver(
void CastDeviceUpdateListeners::NotifyCallbacks(
const ReceiverAndActivityList& devices) {
- FOR_EACH_OBSERVER(ash::CastConfigDelegate::Observer, observer_list_,
- OnDevicesUpdated(devices));
+ for (auto& observer : observer_list_)
+ observer.OnDevicesUpdated(devices);
}
CastDevicesPrivateUpdateDevicesFunction::

Powered by Google App Engine
This is Rietveld 408576698