RELAND: base/power_monitor: Add method to query thermal state
This CL relands crrev.com/c/2248729 that got reverted due to breaking Mac Builder (dbg) and others (power_monitor_device_source_unittest.cc did not include logging.h and it couldn't find 'DVLOG'). The original CL description only said "wip wip" o_O, which is sad. Essentially this CL adds a GetCurrentThermalState() to PowerMonitor to actively retrieve the current ThermalState. The ThermalState is sent to PowerObservers, but newly created clients still need to query it at least one time. TBR=fdoray@chromium.org since the diff is just an include file. Bug: 1071431 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2248729Reviewed-by:Henrik Boström <hbos@chromium.org> Reviewed-by:
François Doray <fdoray@chromium.org> Commit-Queue: Miguel Casas <mcasas@chromium.org> Cr-Commit-Position: refs/heads/master@{#781322} Change-Id: Ia62ddfd8afc167473f3456e4982f51eaa52a833f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2261363Reviewed-by:
Miguel Casas <mcasas@chromium.org> Commit-Queue: Miguel Casas <mcasas@chromium.org> Cr-Commit-Position: refs/heads/master@{#781678}
Showing
Please register or sign in to comment