Implement PowerMonitorDeviceSource::GetCurrentThermalState on ChromeOS
On ChromeOS, PowerMonitorDeviceSource::GetCurrentThermalState will always return PowerObserver::DeviceThermalState::kUnknown now, because PowerManagerClientImpl will miss the first thermal event sent by the Thermal Hinting API when constructed and there isn't a cache of the last state. In this CL, the GetCurrentThermalState is implemented for ChromeOS using GetThermalState API added by https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2495080 BUG=chromium:1081959 TEST=Manually test in chrome://device-log to see if there's "GetThermalState" response after startup. Change-Id: I9bbf5416b0ba76a015a08d2d4c91ea732704a541 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2498240 Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org> Reviewed-by:Steven Bennetts <stevenjb@chromium.org> Reviewed-by:
Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#830944}
Showing
Please register or sign in to comment