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

Issue 158063002: Use udev for serial device enumeration on Linux (Closed)

Created:
6 years, 10 months ago by Ken Rockot(use gerrit already)
Modified:
6 years, 10 months ago
Reviewers:
scheib, rpaquay
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Use udev for serial device enumeration on Linux Device enumeration code has been lifted from src/chrome/browser/extensions/api/serial and moved into src/device/serial. The enumeration impl for Linux now uses udev to enumerate devices matching the "tty" subsystem, rather than matching /dev node name patterns. The Windows implementation remains effectively unchanged, and the Mac implementation has had its /dev pattern filter relaxed to catch devices of the more generic forms "/dev/tty.*" and "/dev/cu.*". BUG=334698 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251218

Patch Set 1 #

Patch Set 2 : OVEERRIDEs and tighten mac filter #

Patch Set 3 : fixt yo gyp #

Patch Set 4 : win typo #

Total comments: 2

Patch Set 5 : doc nits #

Total comments: 4

Patch Set 6 : nits, todos, formatting #

Patch Set 7 : make new fields optional #

Patch Set 8 : -___- #

Unified diffs Side-by-side diffs Delta from patch set Stats (+467 lines, -302 lines) Patch
A + chrome/browser/extensions/api/serial/DEPS View 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/serial/serial_api.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/serial/serial_api.cc View 1 2 3 4 5 6 3 chunks +20 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/serial/serial_apitest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/serial/serial_connection.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/serial/serial_connection.cc View 1 2 3 4 5 3 chunks +12 lines, -20 lines 0 comments Download
M chrome/browser/extensions/api/serial/serial_connection_posix.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/serial/serial_connection_win.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/extensions/api/serial/serial_port_enumerator.h View 1 chunk +0 lines, -42 lines 0 comments Download
D chrome/browser/extensions/api/serial/serial_port_enumerator.cc View 1 chunk +0 lines, -15 lines 0 comments Download
D chrome/browser/extensions/api/serial/serial_port_enumerator_posix.cc View 1 chunk +0 lines, -97 lines 0 comments Download
D chrome/browser/extensions/api/serial/serial_port_enumerator_unittest.cc View 1 chunk +0 lines, -69 lines 0 comments Download
D chrome/browser/extensions/api/serial/serial_port_enumerator_win.cc View 1 chunk +0 lines, -31 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 2 chunks +1 line, -4 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/serial.idl View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
A device/serial/serial.gyp View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
A device/serial/serial_device_enumerator.h View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
A device/serial/serial_device_enumerator.cc View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
A device/serial/serial_device_enumerator_linux.h View 1 2 3 4 5 6 1 chunk +37 lines, -0 lines 0 comments Download
A device/serial/serial_device_enumerator_linux.cc View 1 2 3 4 5 6 1 chunk +105 lines, -0 lines 0 comments Download
A device/serial/serial_device_enumerator_mac.h View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
A device/serial/serial_device_enumerator_mac.cc View 1 2 3 4 5 6 1 chunk +60 lines, -0 lines 0 comments Download
A device/serial/serial_device_enumerator_win.h View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
A device/serial/serial_device_enumerator_win.cc View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
A device/serial/serial_device_info.h View 1 2 3 4 5 6 1 chunk +34 lines, -0 lines 0 comments Download
A + device/serial/serial_device_info.cc View 1 2 3 4 5 6 1 chunk +5 lines, -6 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Ken Rockot(use gerrit already)
Please take a look schieb@ for c/b/e, rpaquay@ for devices/
6 years, 10 months ago (2014-02-10 18:03:28 UTC) #1
scheib
chrome/* lgtm with documentation nit. https://codereview.chromium.org/158063002/diff/80001/chrome/common/extensions/api/serial.idl File chrome/common/extensions/api/serial.idl (right): https://codereview.chromium.org/158063002/diff/80001/chrome/common/extensions/api/serial.idl#newcode16 chrome/common/extensions/api/serial.idl:16: // device. Zero otherwise. ...
6 years, 10 months ago (2014-02-10 23:37:51 UTC) #2
Ken Rockot(use gerrit already)
Thanks. Doc bug filed (http://crbug.com/342827). Notes added to new fields.
6 years, 10 months ago (2014-02-11 17:51:51 UTC) #3
rpaquay
In the previous code, there were some unit tests for matching devices names. Are those ...
6 years, 10 months ago (2014-02-12 00:39:28 UTC) #4
Ken Rockot(use gerrit already)
Thanks. Regarding the old unit test, I removed it because I don't think it really ...
6 years, 10 months ago (2014-02-12 01:22:44 UTC) #5
rpaquay
lgtm with nit: https://codereview.chromium.org/158063002/diff/80001/chrome/common/extensions... chrome/common/extensions/api/serial.idl:16: // device. Zero otherwise. On 2014/02/10 23:37:52, scheib wrote: > ...
6 years, 10 months ago (2014-02-12 01:59:32 UTC) #6
Ken Rockot(use gerrit already)
On 2014/02/12 01:59:32, rpaquay wrote: > lgtm with nit: > > https://codereview.chromium.org/158063002/diff/80001/chrome/common/extensions... > chrome/common/extensions/api/serial.idl:16: // ...
6 years, 10 months ago (2014-02-12 18:00:43 UTC) #7
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 10 months ago (2014-02-12 18:30:52 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/158063002/640001
6 years, 10 months ago (2014-02-12 18:35:00 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 00:14:44 UTC) #10
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=262825
6 years, 10 months ago (2014-02-13 00:14:46 UTC) #11
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 10 months ago (2014-02-13 06:02:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/158063002/860001
6 years, 10 months ago (2014-02-13 06:02:25 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 06:33:14 UTC) #14
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=50017
6 years, 10 months ago (2014-02-13 06:33:14 UTC) #15
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 10 months ago (2014-02-13 18:10:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/158063002/860001
6 years, 10 months ago (2014-02-13 18:11:19 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 18:38:45 UTC) #18
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=50108
6 years, 10 months ago (2014-02-13 18:38:51 UTC) #19
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 10 months ago (2014-02-13 20:53:54 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/158063002/860001
6 years, 10 months ago (2014-02-13 20:56:23 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-13 21:33:27 UTC) #22
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=50186
6 years, 10 months ago (2014-02-13 21:33:31 UTC) #23
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 10 months ago (2014-02-13 22:33:48 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/158063002/860001
6 years, 10 months ago (2014-02-13 22:36:59 UTC) #25
commit-bot: I haz the power
6 years, 10 months ago (2014-02-14 01:17:44 UTC) #26
Message was sent while issue was closed.
Change committed as 251218

Powered by Google App Engine
This is Rietveld 408576698