• tzik's avatar
    Rewrite base::Bind to base::BindOnce with base_bind_rewriters in... · 647564e8
    tzik authored
    Rewrite base::Bind to base::BindOnce with base_bind_rewriters in //chrome/browser/chromeos/file_manager
    
    This is a generated CL by a clang refactoring tool at //tools/clang/base_bind_rewriters.
    It rewrites base::Bind to base::BindOnce where the resulting Callback is converted to
    OnceCallback immediately.
    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
    Change-Id: I54220a53ba53141700cecbbeed585a8c1627e0a8
    Reviewed-on: https://chromium-review.googlesource.com/517466Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
    Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#475861}
    647564e8
filesystem_api_util.cc 8.62 KB