• Jan Wilken Dörrie's avatar
    [base] Apply BindOnceRewriter in //ipc · 0825fc3e
    Jan Wilken Dörrie authored
    This change applies the BindOnceRewriter in //ipc.
    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=jam@chromium.org
    
    Bug: 714018
    Change-Id: I323ecd822f7dbf4eefdf4cabf29a39d21d2e0ffa
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2132260
    Auto-Submit: Jan Wilken Dörrie <jdoerrie@chromium.org>
    Commit-Queue: Ken Rockot <rockot@google.com>
    Reviewed-by: default avatarKen Rockot <rockot@google.com>
    Cr-Commit-Position: refs/heads/master@{#761106}
    0825fc3e
ipc_mojo_bootstrap.cc 37.4 KB