[Telemetry SWX] Use New() for health types
Use New() for health types: - BatteryInfo - NonRemovableBlockDeviceInfo - CachedVpdInfo Pro: - We'll have a compilation error if we forgot some field Con: - Compiler may compile code if we swap some fields in the mojo type. But we have unit tests that should cover it. Bug: b:158658869 Change-Id: I3b8edfc393f85b8441d1af2d97302d2ff8553266 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2273063 Commit-Queue: Oleh Lamzin <lamzin@google.com> Reviewed-by:Giovanni Ortuño Urquidi <ortuno@chromium.org> Reviewed-by:
Mahmoud Gawad <mgawad@google.com> Reviewed-by:
Roland Bock <rbock@google.com> Cr-Commit-Position: refs/heads/master@{#786196}
Showing
Please register or sign in to comment