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

Unified Diff: ash/system/chromeos/power/tablet_power_button_controller.h

Issue 2640333002: Revert "ash: Add one second grace period For LockScreenIfRequired" (Closed)
Patch Set: Created 3 years, 11 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/chromeos/power/tablet_power_button_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/chromeos/power/tablet_power_button_controller.h
diff --git a/ash/system/chromeos/power/tablet_power_button_controller.h b/ash/system/chromeos/power/tablet_power_button_controller.h
index 78cecebc2ab311df6c1754d1bd86580edc365b12..b99148efaab18721db5814830f3ef9200d35a7c5 100644
--- a/ash/system/chromeos/power/tablet_power_button_controller.h
+++ b/ash/system/chromeos/power/tablet_power_button_controller.h
@@ -42,12 +42,6 @@ class ASH_EXPORT TabletPowerButtonController
// Emulates |shutdown_timer_| timeout.
void TriggerShutdownTimeout();
- // Returns true when |lock_screen_timer_| is running.
- bool LockScreenTimerIsRunning() const;
-
- // Emulates |lock_screen_timer_| timeout.
- void TriggerLockScreenTimeout();
-
private:
TabletPowerButtonController* controller_; // Not owned.
@@ -107,9 +101,6 @@ class ASH_EXPORT TabletPowerButtonController
// and locking is possible.
void LockScreenIfRequired();
- // Called by |lock_screen_timer_| to start locking screen.
- void OnLockScreenTimeout();
-
// True if the brightness level is currently set to off.
bool brightness_level_is_zero_ = false;
@@ -133,10 +124,6 @@ class ASH_EXPORT TabletPowerButtonController
// released. Runs OnShutdownTimeout() to start shutdown.
base::OneShotTimer shutdown_timer_;
- // Used to provide a grace period between forcing the display off and locking
- // the screen. Runs OnLockScreenTimeout().
- base::OneShotTimer lock_screen_timer_;
-
LockStateController* controller_; // Not owned.
base::WeakPtrFactory<TabletPowerButtonController> weak_ptr_factory_;
« no previous file with comments | « no previous file | ash/system/chromeos/power/tablet_power_button_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698