-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
serial: Fix getSignals() error handling
This change fixes error handling for the getSignals() method. It was assumed that the Mojo reply value could be null on error but this was not allowed by serial.mojom. This meant that if a call to GetControlSignals() failed it would trigger a Mojo connection failure rather than only reporting the (potentially recoverable) error. Tests exercising this case on both the renderer and browser process sides have been added. Bug: 1156864 Change-Id: Ife5c953d5f6748c0290fae2f2d53c5415c1faba6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2580747 Commit-Queue: Reilly Grant <reillyg@chromium.org> Reviewed-by: Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#835293}
- Loading branch information
1 parent
e811907
commit 351a997
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters