Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2001)

Unified Diff: ash/system/power/tablet_power_button_controller.cc

Issue 2946233003: cros: stop forcing off display when powerd reports SuspendDone (Closed)
Patch Set: nits Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/system/power/tablet_power_button_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0f8dea7789afd3a23fe1969591199d46d012e9d3 100644
--- a/ash/system/power/tablet_power_button_controller.cc
+++ b/ash/system/power/tablet_power_button_controller.cc
@@ -159,6 +159,9 @@ void TabletPowerButtonController::BrightnessChanged(int level,
void TabletPowerButtonController::SuspendDone(
const base::TimeDelta& sleep_duration) {
last_resume_time_ = tick_clock_->NowTicks();
+ // Stop forcing backlights off on resume to handle situations where the power
+ // button resumed but we didn't receive the event (crbug.com/735291).
+ SetDisplayForcedOff(false);
}
void TabletPowerButtonController::LidEventReceived(
« no previous file with comments | « no previous file | ash/system/power/tablet_power_button_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698