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

Unified Diff: ui/events/ozone/device/udev/device_manager_udev.cc

Issue 2422073002: Reduce FOR_EACH_OBSERVER usage in ui/ (Closed)
Patch Set: remove space 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 | « ui/events/ozone/device/device_manager_manual.cc ('k') | ui/events/platform/platform_event_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/device/udev/device_manager_udev.cc
diff --git a/ui/events/ozone/device/udev/device_manager_udev.cc b/ui/events/ozone/device/udev/device_manager_udev.cc
index 47776dac215bf360a3d1e9359d69c9c238b470a3..2f8ee265653b98c012857fe162c501768801ef35 100644
--- a/ui/events/ozone/device/udev/device_manager_udev.cc
+++ b/ui/events/ozone/device/udev/device_manager_udev.cc
@@ -148,8 +148,8 @@ void DeviceManagerUdev::OnFileCanReadWithoutBlocking(int fd) {
std::unique_ptr<DeviceEvent> event = ProcessMessage(device.get());
if (event)
- FOR_EACH_OBSERVER(
- DeviceEventObserver, observers_, OnDeviceEvent(*event.get()));
+ for (DeviceEventObserver& observer : observers_)
+ observer.OnDeviceEvent(*event.get());
}
void DeviceManagerUdev::OnFileCanWriteWithoutBlocking(int fd) {
« no previous file with comments | « ui/events/ozone/device/device_manager_manual.cc ('k') | ui/events/platform/platform_event_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698