DescriptionUse OnceCallback on Mojo interfaces in //components/autofill
This CL flips `use_once_calback` flag on the Mojo code generator, and
fixes all compile errors after it. After this CL, Mojo interfaces in
//components/autofill starts using base::OnceCallback instead of
base::Callback on its return value handling.
The migration recipe was:
- Convert pass-by-ref callback objects to pass-by-value.
- Use std::move() to forward it to other consumer, or to invoke it
with Callback::Run().
- Handle wherever copies are required manually.
- Check if the conversion doesn't change the semantics. As the transfer
and invocation clobber the callback object, care about use-after-move.
It's considered safe to consume almost scoped-out callback.
BUG=714018
Review-Url: https://codereview.chromium.org/2869673002
Cr-Commit-Position: refs/heads/master@{#471170}
Committed: https://chromium.googlesource.com/chromium/src/+/4772a01d5433374cd8dd6f4a9fedaff7eafbd5a7
Patch Set 1 #Patch Set 2 : rebase. +#include #Patch Set 3 : rebase #
Messages
Total messages: 28 (20 generated)
|