| 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 {
|
|
|