Use base::BindOnce for PostTask callbacks.

TaskRunner::PostTask() takes a OnceCallback. Replace usage of
base::Bind(), which produces a RepeatingCallback, with base::BindOnce()
when the callback is created as a temporary inside of PostTask(). The
following regex was used to find instances that could be replaced:


Also replace any usage of base::Passed(&var) with std::move(var) for
variables passed to base::BindOnce(). base::Passed() isn't needed for
move-only types with OnceCallbacks.

This CL was uploaded by git cl split.

Bug: 714018
Change-Id: I3dfbf9194abf30d0f9c36363ef00033eb04b102e
Auto-Submit: kylechar <>
Reviewed-by: Bill Budge <>
Commit-Queue: Bill Budge <>
Cr-Original-Commit-Position: refs/heads/master@{#633569}
Cr-Mirrored-Commit: 444859b4be3fd489cc88eada62f7e1fd0f606070
8 files changed