• Jan Wilken Dörrie's avatar
    [base] Apply BindOnceRewriter in //pdf · 60852610
    Jan Wilken Dörrie authored
    This change applies the BindOnceRewriter in //pdf.
    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=thestig@chromium.org
    
    Bug: 714018
    Change-Id: I6450f7b53ea140ac36b9db4a0c5bac5f3047f5dd
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2132261
    Auto-Submit: Jan Wilken Dörrie <jdoerrie@chromium.org>
    Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
    Commit-Queue: Lei Zhang <thestig@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#755431}
    60852610
url_loader_wrapper_impl.cc 10.1 KB