Apply base_bind_rewriters to //components to update base::Bind to base::BindOnce

This CL applies a refactoring tool at //tools/clang/base_bind_rewriters
to //components, that updates base::Bind to base::BindOnce where the
resulting Callback is immediately converted to OnceCallback.

This reduces the number of base::Bind in //components by 921 (from 2749 to 1828).

Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.chromium.android:android_cronet_tester;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: Ia07c5b2987e113efcdeccab8f5b4ec290779d128
Reviewed-on: https://chromium-review.googlesource.com/1151035
Commit-Queue: Taiju Tsuiki <[email protected]>
Reviewed-by: Colin Blundell <[email protected]>
Cr-Commit-Position: refs/heads/master@{#579367}
diff --git a/components/drive/sync_client_unittest.cc b/components/drive/sync_client_unittest.cc
index 050f1471..782885dc 100644
--- a/components/drive/sync_client_unittest.cc
+++ b/components/drive/sync_client_unittest.cc
@@ -66,9 +66,8 @@
     if (resource_id == resource_id_to_be_cancelled_) {
       base::ThreadTaskRunnerHandle::Get()->PostTask(
           FROM_HERE,
-          base::Bind(download_action_callback,
-                     google_apis::DRIVE_CANCELLED,
-                     base::FilePath()));
+          base::BindOnce(download_action_callback, google_apis::DRIVE_CANCELLED,
+                         base::FilePath()));
       return google_apis::CancelCallback();
     }
     if (resource_id == resource_id_to_be_paused_) {
@@ -398,9 +397,9 @@
   // will receive no error.
   base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
       FROM_HERE,
-      base::Bind(&test_util::FakeNetworkChangeNotifier::SetConnectionType,
-                 base::Unretained(fake_network_change_notifier_.get()),
-                 net::NetworkChangeNotifier::CONNECTION_NONE),
+      base::BindOnce(&test_util::FakeNetworkChangeNotifier::SetConnectionType,
+                     base::Unretained(fake_network_change_notifier_.get()),
+                     net::NetworkChangeNotifier::CONNECTION_NONE),
       TestTimeouts::tiny_timeout());
 
   // Try fetch and upload.