DescriptionRewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/policy
This is a generated CL by a clang refactoring tool at //tools/clang/base_bind_rewriters.
The tool rewrites base::Bind to base::BindOnce where the resulting Callback
is immediately converted to OnceCallback.
E.g.:
base::PostTask(FROM_HERE, base::Bind(&Foo));
is rewritten to:
base::PostTask(FROM_HERE, base::BindOnce(&Foo));
In terms of the behavior change after the rewrite, the OnceCallback
implementation moves out the bound argument to the target function, unlike
Callback.
BUG=554299
Review-Url: https://codereview.chromium.org/2826843004
Cr-Commit-Position: refs/heads/master@{#467242}
Committed: https://chromium.googlesource.com/chromium/src/+/56432d951bee9e8162561899c3ac2f0cd524d528
Patch Set 1 #
Messages
Total messages: 14 (10 generated)
|