Skip to content
  • tzik's avatar
    Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/{i,l,m,n,p,r}* · 3f7781da
    tzik authored
    This is a generated CL by a clang refactoring tool at //tools/clang/base_bind_rewriters.
    The tool rewrites base::Bind to base::BindOnce where the resulting Callback
    is immediately converted to OnceCallback.
    E.g.:
      base::PostTask(FROM_HERE, base::Bind(&Foo));
    is rewritten to:
      base::PostTask(FROM_HERE, base::BindOnce(&Foo));
    
    In terms of the behavior change after the rewrite, the OnceCallback
    implementation moves out the bound argument to the target function, unlike
    Callback.
    
    BUG=554299
    
    Review-Url: https://codereview.chromium.org/2828663002
    Cr-Commit-Position: refs/heads/master@{#466030}
    3f7781da