[Autofill Assistant] Fix WaitForDomAction.
Before this patch, WaitForDomAction could get into situation where rounds was < 0 and crash in debug mode. This could happen if timeout_ms was very small or at the end, if the element was not found. This patch fixes the round counting and dchecks. With this patch, WaitForDomAction won't crash in debug mode when the element cannot be found. Bug: 806868 Change-Id: I308883441876df66225550b9ddc43d1894a48de6 Reviewed-on: https://chromium-review.googlesource.com/c/1264576Reviewed-by:Ganggui Tang <gogerald@chromium.org> Commit-Queue: Ganggui Tang <gogerald@chromium.org> Cr-Commit-Position: refs/heads/master@{#597160}
Showing
Please register or sign in to comment