This is the cherry pick merge for the M73 branch which was approved here:

[Autofill Assistant] Fix bug in ShowDetailsAction.

Before this patch, users selecting "Go Back" when asked to confirm
inconsistent details caused a crash. This was caused by std::move being
called twice on the same callback.

This patch gets rid of the crash by keeping the callback in the action
instance instead of the individual callbacks.

Bug: 806868
Change-Id: I6f8520e4f3b97bed40369cc95f19c5d2e763f95f
Reviewed-by: Mathias Carlen <>
Commit-Queue: Stephane Zermatten <>
Cr-Original-Commit-Position: refs/heads/master@{#626978}(cherry picked from commit c5c8dabd64a57d29633843353d66e21c04a0589c)
Reviewed-by: Stephane Zermatten <>
Cr-Commit-Position: refs/branch-heads/3683@{#110}
Cr-Branched-From: e51029943e0a38dd794b73caaf6373d5496ae783-refs/heads/master@{#625896}
2 files changed