
When a user is auto signed-in and logs out to switch the account being used, they might run into a deadloop where they are auto signed-in into the same account again. We add a 10 minute cooldown which starts from the time a user is auto signed-in. Within the cooldown, the user will be able to sign-in explicitly through choosing an account on the dialog. The cooldown time will be subject to change as we have yet to gather metrics to validate if 10 minutes is ideal. Bug: 1408533 Change-Id: Ic3323d5f638cc0c21124b6561131b8b874350639 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4216231 Reviewed-by: Dominick Ng <dominickn@chromium.org> Reviewed-by: Alexander Timin <altimin@chromium.org> Reviewed-by: Yi Gu <yigu@chromium.org> Commit-Queue: Zachary Tan <tanzachary@chromium.org> Cr-Commit-Position: refs/heads/main@{#1103248}