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

Unified Diff: device/usb/usb_device.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/media_transfer_protocol/media_transfer_protocol_manager.cc ('k') | device/usb/usb_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device.cc
diff --git a/device/usb/usb_device.cc b/device/usb/usb_device.cc
index 06c4f7c14ebfdbd6d722f4824f5cf0f801888156..5e25dcdea0450a5f12e542a5f082c1e52abdc0e1 100644
--- a/device/usb/usb_device.cc
+++ b/device/usb/usb_device.cc
@@ -73,7 +73,8 @@ void UsbDevice::ActiveConfigurationChanged(int configuration_value) {
}
void UsbDevice::NotifyDeviceRemoved() {
- FOR_EACH_OBSERVER(Observer, observer_list_, OnDeviceRemoved(this));
+ for (auto& observer : observer_list_)
+ observer.OnDeviceRemoved(this);
}
void UsbDevice::OnDisconnect() {
« no previous file with comments | « device/media_transfer_protocol/media_transfer_protocol_manager.cc ('k') | device/usb/usb_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698