Rewrite base::Bind to base::BindOnce with base_bind_rewriters in...
Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/chromeos/file_manager This is a generated CL by a clang refactoring tool at //tools/clang/base_bind_rewriters. It rewrites base::Bind to base::BindOnce where the resulting Callback is converted to OnceCallback immediately. 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 Change-Id: I54220a53ba53141700cecbbeed585a8c1627e0a8 Reviewed-on: https://chromium-review.googlesource.com/517466Reviewed-by:Naoki Fukino <fukino@chromium.org> Commit-Queue: Taiju Tsuiki <tzik@chromium.org> Cr-Commit-Position: refs/heads/master@{#475861}
Showing
Please register or sign in to comment