• Jan Wilken Dörrie's avatar
    [base] Apply BindOnceRewriter in //device/bluetooth/bluez · ec412f3c
    Jan Wilken Dörrie authored
    This change applies the BindOnceRewriter in //device/bluetooth/bluez.
    This rewriter replaces calls to base::Bind and base::BindRepeating with
    calls to base::BindOnce, in case the result is immediately assigned to a
    base::OnceCallback. Given that base::RepeatingCallback is implicitly
    convertible to base::OnceCallback, there is no change in functionality.
    
    Steps:
      1. run_tool.py --tool base_bind_rewriters \
                     --tool-arg='--rewriter=bind_to_bind_once'
      2. git cl format
    
    This CL was uploaded by git cl split.
    
    R=sonnysasaka@chromium.org
    
    Bug: 714018
    Change-Id: I294a17baa39c390c53928676b4c3cefd09f67e37
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2132135
    Auto-Submit: Jan Wilken Dörrie <jdoerrie@chromium.org>
    Reviewed-by: default avatarSonny Sasaka <sonnysasaka@chromium.org>
    Commit-Queue: Sonny Sasaka <sonnysasaka@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#755456}
    ec412f3c
bluetooth_socket_bluez.cc 17.4 KB