Chromium Code Reviews
Descriptioncros: Fix API 'add' password and complete auth racing
Authenticator.maybeCompleteAuth_ is attempted on webview.loadcommit
and webview.request.onCompleted events. Auth is completed when all
info is collected. Gaia uses credential passing API to send back the
password. This, however, is not bound to the two events. If the
two events happen before the 'add' API calls through, auth never
gets completed. This CL fixes the racing by adding maybeCompleteAuth_
on the API 'add' call.
BUG=650543
TEST=Existing login tests should pass.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/4caa576572fa920a66f1e9449daa9f41ce80b76f
Cr-Commit-Position: refs/heads/master@{#422130}
Patch Set 1 #
Messages
Total messages: 13 (8 generated)
|
||||||||||||||||||||||||||||