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

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

Issue 2815453007: cros: Stop forcing off display when lid events are received (Closed)
Patch Set: nits Created 3 years, 8 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
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 0347bbdd26b23a67a2f8a2cbced29a5082ef1af7..a2b252809570dbedee17d42ef95d5f520d6b6d55 100644
--- a/ash/system/power/tablet_power_button_controller.cc
+++ b/ash/system/power/tablet_power_button_controller.cc
@@ -162,6 +162,12 @@ void TabletPowerButtonController::SuspendDone(
last_resume_time_ = tick_clock_->NowTicks();
}
+void TabletPowerButtonController::LidEventReceived(
+ chromeos::PowerManagerClient::LidState state,
+ const base::TimeTicks& timestamp) {
+ SetDisplayForcedOff(false);
+}
+
void TabletPowerButtonController::OnMaximizeModeStarted() {
shutdown_timer_.Stop();
if (controller_->CanCancelShutdownAnimation())
« no previous file with comments | « ash/system/power/tablet_power_button_controller.h ('k') | ash/system/power/tablet_power_button_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698