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

Issue 435083002: ash: Fix a screen-locking crash. (Closed)

Created:
6 years, 4 months ago by Daniel Erat
Modified:
6 years, 4 months ago
Reviewers:
stevenjb, oshima
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, Nikita (slow), Denis Kuznetsov (DE-MUC), Chris Masone
Project:
chromium
Visibility:
Public.

Description

ash: Fix a screen-locking crash. LockStateController starts its 350 ms pre-lock animation when the screen is locked via the system tray. When the animation completes, the controller was incorrectly starting the lock-fail timer. If the lock screen had already become ready before this point (possible on a fast system), the timer would crash the process eight seconds later. Change LockStateController to only start the timer when actually requesting that the screen be locked. BUG=349083 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287187

Patch Set 1 #

Total comments: 1

Patch Set 2 : start timer as long as screen isn't already locked #

Total comments: 10

Patch Set 3 : re-upload with diff against correct branch #

Total comments: 4

Patch Set 4 : apply review feedback #

Patch Set 5 : diff against correct branch again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -13 lines) Patch
M ash/wm/lock_state_controller.cc View 1 2 3 3 chunks +18 lines, -13 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Daniel Erat
6 years, 4 months ago (2014-08-01 22:41:43 UTC) #1
Daniel Erat
https://codereview.chromium.org/435083002/diff/1/ash/wm/lock_state_controller.cc File ash/wm/lock_state_controller.cc (right): https://codereview.chromium.org/435083002/diff/1/ash/wm/lock_state_controller.cc#newcode593 ash/wm/lock_state_controller.cc:593: if (system_is_locked_) { another option would be structuring the ...
6 years, 4 months ago (2014-08-01 22:55:07 UTC) #2
Daniel Erat
6 years, 4 months ago (2014-08-01 23:14:51 UTC) #3
stevenjb
lgtm w/nits https://codereview.chromium.org/435083002/diff/40001/ash/wm/lock_state_controller.cc File ash/wm/lock_state_controller.cc (right): https://codereview.chromium.org/435083002/diff/40001/ash/wm/lock_state_controller.cc#newcode603 ash/wm/lock_state_controller.cc:603: if (!system_is_locked_) { nit: Early exit https://codereview.chromium.org/435083002/diff/40001/ash/wm/lock_state_controller.cc#newcode611 ...
6 years, 4 months ago (2014-08-01 23:23:57 UTC) #4
oshima
lgtm with nits and question. https://codereview.chromium.org/435083002/diff/20001/ash/wm/lock_state_controller.cc File ash/wm/lock_state_controller.cc (right): https://codereview.chromium.org/435083002/diff/20001/ash/wm/lock_state_controller.cc#newcode598 ash/wm/lock_state_controller.cc:598: delegate_->RequestLockScreen(); Just for my ...
6 years, 4 months ago (2014-08-01 23:29:58 UTC) #5
Daniel Erat
https://codereview.chromium.org/435083002/diff/20001/ash/wm/lock_state_controller.cc File ash/wm/lock_state_controller.cc (right): https://codereview.chromium.org/435083002/diff/20001/ash/wm/lock_state_controller.cc#newcode598 ash/wm/lock_state_controller.cc:598: delegate_->RequestLockScreen(); On 2014/08/01 23:29:58, oshima wrote: > Just for ...
6 years, 4 months ago (2014-08-01 23:52:06 UTC) #6
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 4 months ago (2014-08-01 23:53:02 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/435083002/80001
6 years, 4 months ago (2014-08-01 23:53:38 UTC) #8
oshima
slgtm https://codereview.chromium.org/435083002/diff/20001/ash/wm/lock_state_controller.cc File ash/wm/lock_state_controller.cc (right): https://codereview.chromium.org/435083002/diff/20001/ash/wm/lock_state_controller.cc#newcode611 ash/wm/lock_state_controller.cc:611: StartsWithASCII(board, "x86-zgb", true)) { On 2014/08/01 23:52:06, Daniel ...
6 years, 4 months ago (2014-08-02 00:27:53 UTC) #9
Daniel Erat
+cmasone since he likes screen-lock timeouts https://codereview.chromium.org/435083002/diff/20001/ash/wm/lock_state_controller.cc File ash/wm/lock_state_controller.cc (right): https://codereview.chromium.org/435083002/diff/20001/ash/wm/lock_state_controller.cc#newcode611 ash/wm/lock_state_controller.cc:611: StartsWithASCII(board, "x86-zgb", true)) ...
6 years, 4 months ago (2014-08-02 00:38:13 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-02 08:04:43 UTC) #11
Message was sent while issue was closed.
Change committed as 287187

Powered by Google App Engine
This is Rietveld 408576698