[Autofill][States] Prevent LoadStatesData from sending callback for
every task posted Currently, |AlternativeStateNameMap::LoadStatesData()| takes a |done_callback| as a parameter and inserts this callback to |pending_init_done_callbacks_| for every task posted which results in an error since |done_callback| is of |base::OnceClosure| type and can be fired only once. With this change, |done_callback| is added to |pending_init_done_callbacks_| before the tasks are posted. Bug: 1111960 Change-Id: If6fdf4a6af2a3ee9eaa0f5ac21075a7ca7ead754 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2536630 Commit-Queue: Vidhan Jain <vidhanj@google.com> Reviewed-by:Matthias Körber <koerber@google.com> Reviewed-by:
Dominic Battré <battre@chromium.org> Cr-Commit-Position: refs/heads/master@{#827824}
Showing
Please register or sign in to comment