commit | 2caf4d6072e501415f8ec60f9023143d0277af67 | [log] [tgz] |
---|---|---|
author | kylechar <[email protected]> | Fri Feb 15 20:03:42 2019 |
committer | Commit Bot <[email protected]> | Fri Feb 15 20:03:42 2019 |
tree | e875c081034001d9913232e35773b1f6fab0bb61 | |
parent | a0aa4d3cc32823b55bed8023915d820bf745443c [diff] |
Use base::BindOnce for PostTask callbacks. TaskRunner::PostTask() takes a OnceCallback. Replace usage of base::Bind(), which produces a RepeatingCallback, with base::BindOnce() when the callback is created as a temporary inside of PostTask(). The following regex was used to find instances that could be replaced: (Post(?:Delayed)?Task)\((?:\n\s*)?FROM_HERE,(?:\n)?\s*base::Bind\( Also replace any usage of base::Passed(&var) with std::move(var) for variables passed to base::BindOnce(). base::Passed() isn't needed for move-only types with OnceCallbacks. This CL was uploaded by git cl split. [email protected] Bug: 714018 Change-Id: I5d3dabe31b239acb3e4ba6db7527fda5a3cd5f4a Reviewed-on: https://chromium-review.googlesource.com/c/1475635 Auto-Submit: kylechar <[email protected]> Reviewed-by: Yuwei Huang <[email protected]> Commit-Queue: Yuwei Huang <[email protected]> Cr-Commit-Position: refs/heads/master@{#632735}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .