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}
Showing
Please register or sign in to comment