[Android] Ensure reauth on every password export
Chrome on Android only allows the user to export passwords if that user is able to reauthenticate by unlocking the device. Once this reauth challenge is passed, Chrome remembers that for 60 seconds, so that the user does not need to reauthenticate again if they pause Chrome momentarily when exporting is in progress. However, the privacy review of the export feature explicitly requested that to start the export, the user always needs to reauthenticate, no matter how recent the last successful reauth was. Therefore this CL ensures that on every start of export (but not on resuming Chrome while the export is in progress), the user is reauthenticated. The CL also changes a helper method in the tests, because many tests so far made use of the fact that faking the last-reauth-timestamp evaded triggering the reauthentication. Bug: 812227 Change-Id: Ibb30b94261fad8a383d94f5c52d41cbc77a55cb8 Reviewed-on: https://chromium-review.googlesource.com/941231Reviewed-by:Theresa <twellington@chromium.org> Commit-Queue: Vaclav Brozek <vabr@chromium.org> Cr-Commit-Position: refs/heads/master@{#539935}
Showing
Please register or sign in to comment