Do not propagete on_tap callback during LOGGED_IN_NOT_ACTIVE state
Bug: b:332715260 Change-Id: I5b30fa2a9e4b898a93cbe39c452897443f35375f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5507835 Commit-Queue: Istvan Nagy <iscsi@google.com> Reviewed-by: Denis Kuznetsov <antrim@chromium.org> Cr-Commit-Position: refs/heads/main@{#1295384}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
66c7adbbc9
commit
4464bb329f
@ -1178,6 +1178,15 @@ void LoginAuthUserView::OnUserViewTap() {
|
||||
// Tapping anywhere in the user view is the same with tapping the message.
|
||||
OnOnlineSignInMessageTap();
|
||||
} else {
|
||||
// Do not propageta OnOnlineSignInMessageTap callback while user is mid
|
||||
// login.
|
||||
if (Shell::Get()->session_controller()->GetSessionState() ==
|
||||
session_manager::SessionState::LOGGED_IN_NOT_ACTIVE) {
|
||||
LOG(WARNING) << "Skip on_tap_ callback during session is in "
|
||||
"LOGGED_IN_NOT_ACTIVE state.";
|
||||
return;
|
||||
}
|
||||
|
||||
if (Shell::Get()->login_screen_controller()->IsAuthenticating()) {
|
||||
// TODO(b/330738798): We should prevent starting a
|
||||
// new authentication process if one is already running.
|
||||
|
Reference in New Issue
Block a user