Skip to content

Commit

Permalink
cros: Increase lock timeout for daisy.
Browse files Browse the repository at this point in the history
- Increase lock timeout for daisy;
- CHECK(false) -> LOG(FATAL) so that the log shows up;

BUG=445226

Review URL: https://codereview.chromium.org/843553002

Cr-Commit-Position: refs/heads/master@{#310405}
  • Loading branch information
xiyuan authored and Commit bot committed Jan 7, 2015
1 parent 334d803 commit 55e960d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ash/wm/lock_state_controller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ void LockStateController::OnLockStateChanged(bool locked) {

void LockStateController::OnLockFailTimeout() {
DCHECK(!system_is_locked_);
CHECK(false) << "We can not be sure about the lock state. Crash and let the "
<< "SessionManager end the session";
LOG(FATAL) << "Screen lock took too long; crashing intentionally";
}

void LockStateController::StartLockToShutdownTimer() {
Expand Down Expand Up @@ -502,7 +501,8 @@ void LockStateController::PreLockAnimationFinished(bool request_lock) {
const std::string board = base::SysInfo::GetLsbReleaseBoard();
if (board == "x86-mario" ||
StartsWithASCII(board, "x86-alex", true /* case_sensitive */) ||
StartsWithASCII(board, "x86-zgb", true /* case_sensitive */)) {
StartsWithASCII(board, "x86-zgb", true /* case_sensitive */) ||
StartsWithASCII(board, "daisy", true /* case_sensitive */)) {
timeout *= 2;
}
#endif
Expand Down

0 comments on commit 55e960d

Please sign in to comment.