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

Issue 1356713004: Fix crash when locking screen while adding a user to an existing session. (Closed)

Created:
5 years, 3 months ago by jdufault
Modified:
5 years, 2 months ago
CC:
chromium-reviews, dzhioev+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix crash when locking screen while adding a user to an existing session. Also added a test to prevent a regression. Essentially, ScreenLocker::HandleLockScreenRequest calls UserAddingScreen::Cancel and uses a callback to be notified for when the user-adding screen is completed. The crash happened because this callback was invoked too early - before the adding screen has been fully deinitialized. BUG=467111 Committed: https://crrev.com/87e397cc8cce3e680b9a54340949dcda5d3e08eb Cr-Commit-Position: refs/heads/master@{#351154}

Patch Set 1 : Exploration (bad approach) #

Patch Set 2 : Proper fix #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M chrome/browser/chromeos/login/lock/screen_locker_browsertest.cc View 1 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_display_host_impl.cc View 1 1 chunk +1 line, -1 line 1 comment Download

Messages

Total messages: 12 (3 generated)
jdufault
Pavel, Achuith, would you please take a look? Thanks!
5 years, 3 months ago (2015-09-21 20:42:12 UTC) #3
achuithb
lgtm
5 years, 3 months ago (2015-09-21 21:25:43 UTC) #4
dzhioev (left Google)
https://codereview.chromium.org/1356713004/diff/40001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc File chrome/browser/chromeos/login/ui/login_display_host_impl.cc (right): https://codereview.chromium.org/1356713004/diff/40001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc#newcode919 chrome/browser/chromeos/login/ui/login_display_host_impl.cc:919: base::MessageLoop::current()->PostTask(FROM_HERE, completion_callback_); Can you please explain, how this helps ...
5 years, 2 months ago (2015-09-24 23:51:17 UTC) #5
jdufault
On 2015/09/24 23:51:17, dzhioev wrote: > https://codereview.chromium.org/1356713004/diff/40001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc > File chrome/browser/chromeos/login/ui/login_display_host_impl.cc (right): > > https://codereview.chromium.org/1356713004/diff/40001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc#newcode919 > ...
5 years, 2 months ago (2015-09-26 00:35:11 UTC) #6
dzhioev (left Google)
On 2015/09/26 00:35:11, jdufault wrote: > On 2015/09/24 23:51:17, dzhioev wrote: > > > https://codereview.chromium.org/1356713004/diff/40001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc ...
5 years, 2 months ago (2015-09-28 20:18:58 UTC) #7
dzhioev (left Google)
On 2015/09/26 00:35:11, jdufault wrote: > On 2015/09/24 23:51:17, dzhioev wrote: > > > https://codereview.chromium.org/1356713004/diff/40001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc ...
5 years, 2 months ago (2015-09-28 20:18:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1356713004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1356713004/40001
5 years, 2 months ago (2015-09-28 20:42:45 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:40001)
5 years, 2 months ago (2015-09-28 21:14:54 UTC) #11
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 21:16:38 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/87e397cc8cce3e680b9a54340949dcda5d3e08eb
Cr-Commit-Position: refs/heads/master@{#351154}

Powered by Google App Engine
This is Rietveld 408576698