| Index: ash/wm/maximize_mode/maximize_mode_controller.cc
|
| diff --git a/ash/wm/maximize_mode/maximize_mode_controller.cc b/ash/wm/maximize_mode/maximize_mode_controller.cc
|
| index 0f7325a6ba0caedec30605d899d28b3890c4719e..883317045edf3cd642a36199801705ec28a91418 100644
|
| --- a/ash/wm/maximize_mode/maximize_mode_controller.cc
|
| +++ b/ash/wm/maximize_mode/maximize_mode_controller.cc
|
| @@ -57,8 +57,7 @@ const float kMaxStableAngle = 340.0f;
|
| // This is used to prevent entering maximize mode if an erroneous accelerometer
|
| // reading makes the lid appear to be fully open when the user is opening the
|
| // lid from a closed position.
|
| -const base::TimeDelta kLidRecentlyOpenedDuration =
|
| - base::TimeDelta::FromSeconds(2);
|
| +const int kLidRecentlyOpenedDurationSeconds = 2;
|
|
|
| #if defined(OS_CHROMEOS)
|
| // When the device approaches vertical orientation (i.e. portrait orientation)
|
| @@ -369,7 +368,7 @@ bool MaximizeModeController::WasLidOpenedRecently() const {
|
| base::TimeTicks now = tick_clock_->NowTicks();
|
| DCHECK(now >= last_lid_open_time_);
|
| base::TimeDelta elapsed_time = now - last_lid_open_time_;
|
| - return elapsed_time <= kLidRecentlyOpenedDuration;
|
| + return elapsed_time.InSeconds() <= kLidRecentlyOpenedDurationSeconds;
|
| }
|
|
|
| void MaximizeModeController::SetTickClockForTest(
|
|
|