Index: ash/wm/power_button_controller.h |
diff --git a/ash/wm/power_button_controller.h b/ash/wm/power_button_controller.h |
index 7043966f92a9d439ef664804e47343fab0d6804c..ebe5fb164d04c317f70fe22cbab3b80acbb84dff 100644 |
--- a/ash/wm/power_button_controller.h |
+++ b/ash/wm/power_button_controller.h |
@@ -5,6 +5,8 @@ |
#ifndef ASH_WM_POWER_BUTTON_CONTROLLER_H_ |
#define ASH_WM_POWER_BUTTON_CONTROLLER_H_ |
+#include <memory> |
+ |
#include "ash/ash_export.h" |
#include "base/macros.h" |
#include "base/time/time.h" |
@@ -26,10 +28,6 @@ class Layer; |
namespace ash { |
-namespace test { |
-class PowerButtonControllerTest; |
-} |
- |
class LockStateController; |
// Handles power & lock button events which may result in the locking or |
@@ -53,10 +51,6 @@ class ASH_EXPORT PowerButtonController |
has_legacy_power_button_ = legacy; |
} |
- void set_enable_quick_lock_for_test(bool enable_quick_lock) { |
- enable_quick_lock_ = enable_quick_lock; |
- } |
- |
// Called when the current screen brightness changes. |
void OnScreenBrightnessChanged(double percent); |
@@ -78,8 +72,6 @@ class ASH_EXPORT PowerButtonController |
#endif |
private: |
- friend class test::PowerButtonControllerTest; |
- |
// Are the power or lock buttons currently held? |
bool power_button_down_; |
bool lock_button_down_; |
@@ -105,10 +97,7 @@ class ASH_EXPORT PowerButtonController |
// that misreports power button releases? |
bool has_legacy_power_button_; |
- // Enables quick, non-cancellable locking of the screen when in maximize mode. |
- bool enable_quick_lock_; |
- |
- LockStateController* controller_; // Not owned. |
+ LockStateController* lock_state_controller_; // Not owned. |
DISALLOW_COPY_AND_ASSIGN(PowerButtonController); |
}; |