[Telemetry SWX] Use which() and switch for unions
Use which() method and switch to convert Mojo unions. Ther benefit is that if union will be extended on cros_healthd side, there will be compilation error. Bug: b:158658869 Change-Id: If86b6c9a1e8eebe7b28ba8597234d6f742638e03 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2273064 Commit-Queue: Oleh Lamzin <lamzin@google.com> Reviewed-by:Giovanni Ortuño Urquidi <ortuno@chromium.org> Reviewed-by:
Roland Bock <rbock@google.com> Reviewed-by:
Mahmoud Gawad <mgawad@google.com> Cr-Commit-Position: refs/heads/master@{#786200}
Showing
Please register or sign in to comment