|
Set serial connection parameters immediately on connect.
This change merges the initial call to SetCommState/tcsetattr with
the call to ConfigurePort so that parameters such as baud rate are
configured immediately when the port is opened. Default values for
these parameters are now always applied.
This works around an issue with some serial adapter drivers on Windows
that report an invalid baud rate through GetCommState. Having the
intended baud rate available for the first call to SetCommState allows
an application to provide a valid value so that Chrome does not have
to guess.
BUG= 448407
Committed: https://crrev.com/ea2760c173e70ddcdcc64e0522a93d6a08785cae
Cr-Commit-Position: refs/heads/master@{#313604}
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+314 lines, -225 lines) |
Patch |
 |
M |
device/serial/serial_connection_factory.cc
|
View
|
|
2 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
 |
M |
device/serial/serial_io_handler.h
|
View
|
|
5 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
 |
M |
device/serial/serial_io_handler.cc
|
View
|
|
5 chunks |
+39 lines, -2 lines |
0 comments
|
Download
|
 |
M |
device/serial/serial_io_handler_posix.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
device/serial/serial_io_handler_posix.cc
|
View
|
|
4 chunks |
+95 lines, -84 lines |
0 comments
|
Download
|
 |
M |
device/serial/serial_io_handler_win.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
device/serial/serial_io_handler_win.cc
|
View
|
|
6 chunks |
+60 lines, -46 lines |
0 comments
|
Download
|
 |
M |
device/serial/serial_service_unittest.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
device/serial/test_serial_io_handler.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
device/serial/test_serial_io_handler.cc
|
View
|
|
2 chunks |
+11 lines, -15 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/serial/serial_api.cc
|
View
|
|
1 chunk |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/api/serial/serial_connection.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
extensions/browser/api/serial/serial_connection.cc
|
View
|
|
1 chunk |
+14 lines, -2 lines |
0 comments
|
Download
|
 |
M |
extensions/renderer/api/serial/serial_api_unittest.cc
|
View
|
1
2
|
2 chunks |
+65 lines, -56 lines |
0 comments
|
Download
|
Total messages: 9 (2 generated)
|