A common pattern of AdaptCallbackForRepeating is success/error handling:
void Foo(base::OnceClosure success, base::OnceClosure error);
void Bar(base::OnceClosure callback) {
base::RepeatingClosure copyable_callback =
base::AdaptCallbackForRepeating(std::move(callback));
Foo(copyable_callback, copyable_callback);
}
The ACFR here is introduced as a workaround for migration from copyable base::Callback to move-only base::OnceCallback, and should be removed by modifying the interface around Foo().
This is a tracking bug for newly added cases and their removal.
Comment 1 by scheib@chromium.org
, Jun 8 2017