commit | 0686a523789de15e455b56f9bb41405f10eab3ae | [log] [tgz] |
---|---|---|
author | kylechar <kylechar@chromium.org> | Tue Feb 19 14:10:29 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Feb 19 14:10:29 2019 |
tree | 175ea543c5f740a8a33485bda5c83f817ab293f0 | |
parent | d847772638b374dbf0f666b066c5f5c3c9250c1b [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. R=rdevlin.cronin@chromium.org, tbarzic@chromium.org Bug: 714018 Change-Id: Ib2c129a60744c0030a2d2ab5b3947d2a8b7c4b27 Reviewed-on: https://chromium-review.googlesource.com/c/1475735 Auto-Submit: kylechar <kylechar@chromium.org> Reviewed-by: Devlin <rdevlin.cronin@chromium.org> Commit-Queue: kylechar <kylechar@chromium.org> Cr-Commit-Position: refs/heads/master@{#633246}
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 .