[Signin][Android] Fix race condition and NPE in AccountSigninView
This CL fixes an unlikely race condition and a NullPointerException that were happening in AccountSigninView.recordConsent because of simultaneous unsynchronized accesses to mSelectedAccountName field. This CL also adds conditions to ignore taps on confirmation button and Settings link if there's no account selected. This is necessary because UI events are delivered asynchronously. Bug: 891508 Change-Id: I366122a927e2c0b4683cfc85eb461cbfd6485b30 Reviewed-on: https://chromium-review.googlesource.com/c/1356802Reviewed-by:Martin Šrámek <msramek@chromium.org> Commit-Queue: Boris Sazonov <bsazonov@chromium.org> Cr-Commit-Position: refs/heads/master@{#612671}
Showing
Please register or sign in to comment