Chromium Code Reviews| Index: ash/system/power/tablet_power_button_controller.cc |
| diff --git a/ash/system/power/tablet_power_button_controller.cc b/ash/system/power/tablet_power_button_controller.cc |
| index 4beeb3e4c26ae88b9ab83dba45320895564a63f0..58e9a8d4cd5535e5d0d86f6c22244aeedb8a4de9 100644 |
| --- a/ash/system/power/tablet_power_button_controller.cc |
| +++ b/ash/system/power/tablet_power_button_controller.cc |
| @@ -159,6 +159,10 @@ void TabletPowerButtonController::BrightnessChanged(int level, |
| void TabletPowerButtonController::SuspendDone( |
| const base::TimeDelta& sleep_duration) { |
| last_resume_time_ = tick_clock_->NowTicks(); |
| + // Device should always stopped forcing off backlights when suspend is done. |
| + // This will handle the case when tablet power button pressed causing system |
| + // resuming, but power button event is not delivered. |
|
Daniel Erat
2017/06/22 18:08:40
nit: maybe just something like:
// Stop forcing b
Qiang(Joe) Xu
2017/06/22 18:36:35
Done.
|
| + SetDisplayForcedOff(false); |
| } |
| void TabletPowerButtonController::LidEventReceived( |