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

Issue 908033005: Move password reset on login screen from after wake up to before suspend (Closed)

Created:
5 years, 10 months ago by Dmitry Polukhin
Modified:
5 years, 10 months ago
CC:
chromium-reviews, dzhioev+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move password reset on login screen from after wake up to before suspend This patch moves password reset on login screen to before suspend time. Also forced focusing user pod will not reset password as it was before. BUG=450465 TEST=manual Committed: https://crrev.com/011b6d7dc582002027dad48b1a8dcf3c9f9de4d6 Cr-Commit-Position: refs/heads/master@{#315553}

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove code duplication #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -8 lines) Patch
M chrome/browser/chromeos/login/lock/webui_screen_locker.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/lock/webui_screen_locker.cc View 1 2 chunks +19 lines, -3 lines 1 comment Download
M ui/login/account_picker/user_pod_row.js View 1 chunk +2 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
Dmitry Polukhin
PTAL
5 years, 10 months ago (2015-02-10 12:29:23 UTC) #2
Nikita (slow)
lgtm https://codereview.chromium.org/908033005/diff/1/chrome/browser/chromeos/login/lock/webui_screen_locker.cc File chrome/browser/chromeos/login/lock/webui_screen_locker.cc (right): https://codereview.chromium.org/908033005/diff/1/chrome/browser/chromeos/login/lock/webui_screen_locker.cc#newcode161 chrome/browser/chromeos/login/lock/webui_screen_locker.cc:161: webui_login_->RequestFocus(); FocusUserPod()
5 years, 10 months ago (2015-02-10 13:00:10 UTC) #3
Dmitry Polukhin
https://codereview.chromium.org/908033005/diff/1/chrome/browser/chromeos/login/lock/webui_screen_locker.cc File chrome/browser/chromeos/login/lock/webui_screen_locker.cc (right): https://codereview.chromium.org/908033005/diff/1/chrome/browser/chromeos/login/lock/webui_screen_locker.cc#newcode161 chrome/browser/chromeos/login/lock/webui_screen_locker.cc:161: webui_login_->RequestFocus(); On 2015/02/10 13:00:10, Nikita wrote: > FocusUserPod() Done.
5 years, 10 months ago (2015-02-10 13:05:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/908033005/20001
5 years, 10 months ago (2015-02-10 13:06:43 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-10 14:00:18 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/011b6d7dc582002027dad48b1a8dcf3c9f9de4d6 Cr-Commit-Position: refs/heads/master@{#315553}
5 years, 10 months ago (2015-02-10 14:01:19 UTC) #8
Chirantan Ekbote
https://codereview.chromium.org/908033005/diff/20001/chrome/browser/chromeos/login/lock/webui_screen_locker.cc File chrome/browser/chromeos/login/lock/webui_screen_locker.cc (right): https://codereview.chromium.org/908033005/diff/20001/chrome/browser/chromeos/login/lock/webui_screen_locker.cc#newcode327 chrome/browser/chromeos/login/lock/webui_screen_locker.cc:327: content::BrowserThread::PostTask( This can race with the system suspend if ...
5 years, 10 months ago (2015-02-11 22:53:12 UTC) #10
Dmitry Polukhin
5 years, 10 months ago (2015-02-12 11:14:59 UTC) #11
Message was sent while issue was closed.
On 2015/02/11 22:53:12, Chirantan Ekbote wrote:
>
https://codereview.chromium.org/908033005/diff/20001/chrome/browser/chromeos/...
> File chrome/browser/chromeos/login/lock/webui_screen_locker.cc (right):
> 
>
https://codereview.chromium.org/908033005/diff/20001/chrome/browser/chromeos/...
> chrome/browser/chromeos/login/lock/webui_screen_locker.cc:327:
> content::BrowserThread::PostTask(
> This can race with the system suspend if the message loop is particularly
busy. 
> So the callback might run after a resume instead.  If you want to be sure that
> the callback runs before the system suspends, you need to call
> GetSuspendReadinessCallback() from the PowerManagerClient and then run that
> callback from ResetAndFocusUserPod().

I think it is not required because later on UI thread we will send message to JS
and there is no guarantee that it will be processed before suspend and we don't
need such strong guarantee IMHO.

Powered by Google App Engine
This is Rietveld 408576698