commit | fa0c131b877393afa8b8b43cc51736eba1612155 | [log] [tgz] |
---|---|---|
author | tzik <tzik@chromium.org> | Wed Mar 07 04:44:52 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Mar 07 04:44:52 2018 |
tree | d11b9b93e4b5f15b5d0ceab83e1ada193c9454c7 | |
parent | 70432e3868d27b3f27bbc0cc96928d9eb5c0041f [diff] |
Apply base_bind_rewriters to //device This CL applies //tools/clang/base_bind_rewriters to //device. It rewrites base::Bind to base::BindOnce where the resulting base::Callback is immediately converted to base::OnceCallback, which is considered safe to use base::BindOnce. E.g.: base::PostTask(FROM_HERE, base::Bind([]{})); base::OnceClosure cb = base::Bind([]{}); are converted to: base::PostTask(FROM_HERE, base::BindOnce([]{})); base::OnceClosure cb = base::BindOnce([]{}); This reduces the number of 'base::Bind' in //device from 1038 to 822, as tracked at http://goo.gl/LUVhDj Bug: 714018 Change-Id: Id89004a2a3ad042bd91f80712ceb1090a4b36691 Reviewed-on: https://chromium-review.googlesource.com/950962 Reviewed-by: Ken Rockot <rockot@chromium.org> Commit-Queue: Taiju Tsuiki <tzik@chromium.org> Cr-Commit-Position: refs/heads/master@{#541339}
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 .