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

Issue 396993010: Monitor udev for hidraw devices instead of hid devices. (Closed)

Created:
6 years, 5 months ago by Reilly Grant (use Gerrit)
Modified:
6 years, 5 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Monitor udev for hidraw devices instead of hid devices. Watching for new hid devices is racy because the hidraw device rules are still running. Fix the race by explicitly waiting for the hidraw device add event. The properties needed from the hid device can be gotten by fetching the parent of the hidraw device from the sysfs tree. BUG=394200 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283810

Patch Set 1 #

Total comments: 4

Patch Set 2 : Don't needlessly rename constants. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -59 lines) Patch
M device/hid/hid_service_linux.h View 1 chunk +0 lines, -2 lines 0 comments Download
M device/hid/hid_service_linux.cc View 1 6 chunks +12 lines, -57 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Reilly Grant (use Gerrit)
6 years, 5 months ago (2014-07-17 01:43:45 UTC) #1
mschilder1
style nits. Manually tested to fix the reported problem. https://codereview.chromium.org/396993010/diff/1/device/hid/hid_service_linux.cc File device/hid/hid_service_linux.cc (right): https://codereview.chromium.org/396993010/diff/1/device/hid/hid_service_linux.cc#newcode30 device/hid/hid_service_linux.cc:30: ...
6 years, 5 months ago (2014-07-17 01:52:38 UTC) #2
Reilly Grant (use Gerrit)
https://codereview.chromium.org/396993010/diff/1/device/hid/hid_service_linux.cc File device/hid/hid_service_linux.cc (right): https://codereview.chromium.org/396993010/diff/1/device/hid/hid_service_linux.cc#newcode30 device/hid/hid_service_linux.cc:30: const char kHidrawSubSystem[] = "hidraw"; On 2014/07/17 01:52:38, mschilder1 ...
6 years, 5 months ago (2014-07-17 03:22:53 UTC) #3
Ken Rockot(use gerrit already)
LGTM, with a nit: I have a strong preference for always making blocks explicit, even ...
6 years, 5 months ago (2014-07-17 14:46:08 UTC) #4
Reilly Grant (use Gerrit)
The CQ bit was checked by reillyg@chromium.org
6 years, 5 months ago (2014-07-17 16:11:21 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reillyg@chromium.org/396993010/20001
6 years, 5 months ago (2014-07-17 16:12:39 UTC) #6
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 17:53:06 UTC) #7
Message was sent while issue was closed.
Change committed as 283810

Powered by Google App Engine
This is Rietveld 408576698