Fix Mojo handle leak when Shape Detection is not available
The native handle passed to the Shape Detection interface registrar can be leaked if the barcode or text detection feature is not available. This change ensures that it is always wrapped in a MessagePipeHandle and closed on failure to bind to an implementation. Bug: 1020746 Change-Id: Ic8a60135ed1ff43c27bb074bd577442dac40482f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2032175 Auto-Submit: Reilly Grant <reillyg@chromium.org> Commit-Queue: Ken Rockot <rockot@google.com> Reviewed-by:Ken Rockot <rockot@google.com> Cr-Commit-Position: refs/heads/master@{#737406}
Showing
Please register or sign in to comment