[go: nahoru, domu]

Remove base::ResetAndReturn usage. Switch to bool callback checks.

base::ResetAndReturn is deprecated and .is_null() syntax is onerous.

Mechanically done via:
git grep --name-only "base::ResetAndReturn(\&" | \
    xargs sed -i "s/base::ResetAndReturn(\&/std::move(/g"
git grep --name-only -e "_cb_\.is_null\(\)" *.cc | \
    xargs sed -ri "s/!([a-zA-Z0-9_]*)_cb_\.is_null\(\)/\1_cb_/g"
git grep --name-only -e "_cb_\.is_null\(\)" *.cc | \
    xargs sed -ri "s/([a-zA-Z0-9_]*)_cb_\.is_null\(\)/\!\1_cb_/g"
git grep --name-only -e "_cb\.is_null\(\)" *.cc | \
    xargs sed -ri "s/!([a-zA-Z0-9_]*)_cb\.is_null\(\)/\1_cb/g"
git grep --name-only -e "_cb\.is_null\(\)" *.cc | \
    xargs sed -ri "s/([a-zA-Z0-9_]*)_cb\.is_null\(\)/\!\1_cb/g"

Bug: none
Test: compiles, passes cq
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: I7bb2bd9da08a4749b69bfbc6d3f471a1cfc1d6c0
Reviewed-on: https://chromium-review.googlesource.com/1239200
Reviewed-by: Xiaohan Wang <xhwang@chromium.org>
Commit-Queue: Dale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#593351}
104 files changed