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

Unified Diff: device/hid/input_service_linux.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/hid/hid_service.cc ('k') | device/media_transfer_protocol/media_transfer_protocol_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/input_service_linux.cc
diff --git a/device/hid/input_service_linux.cc b/device/hid/input_service_linux.cc
index 75eb3526a252ac2e0a66bfdf3efde505a5bf0a8e..b9a1ac040899bd33adcd0719ff3c5c83c95788c3 100644
--- a/device/hid/input_service_linux.cc
+++ b/device/hid/input_service_linux.cc
@@ -241,12 +241,14 @@ bool InputServiceLinux::GetDeviceInfo(const std::string& id,
void InputServiceLinux::AddDevice(const InputDeviceInfo& info) {
devices_[info.id] = info;
- FOR_EACH_OBSERVER(Observer, observers_, OnInputDeviceAdded(info));
+ for (auto& observer : observers_)
+ observer.OnInputDeviceAdded(info);
}
void InputServiceLinux::RemoveDevice(const std::string& id) {
devices_.erase(id);
- FOR_EACH_OBSERVER(Observer, observers_, OnInputDeviceRemoved(id));
+ for (auto& observer : observers_)
+ observer.OnInputDeviceRemoved(id);
}
bool InputServiceLinux::CalledOnValidThread() const {
« no previous file with comments | « device/hid/hid_service.cc ('k') | device/media_transfer_protocol/media_transfer_protocol_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698