Use base::DeleteFileRecursively() in components/.

Make it more obvious "rm -rf" is happening.

Bug: 1009837
Change-Id: I3b39b4ecc7625ad38c93fac34be7fa233520fb4c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1861502
Reviewed-by: Cait Phillips <[email protected]>
Commit-Queue: Lei Zhang <[email protected]>
Cr-Commit-Position: refs/heads/master@{#706154}
diff --git a/components/update_client/component.cc b/components/update_client/component.cc
index 7f5ecb5..36e11d5 100644
--- a/components/update_client/component.cc
+++ b/components/update_client/component.cc
@@ -83,7 +83,7 @@
              InstallOnBlockingTaskRunnerCompleteCallback callback,
              const base::FilePath& unpack_path,
              const CrxInstaller::Result& result) {
-            base::DeleteFile(unpack_path, true);
+            base::DeleteFileRecursively(unpack_path);
             const ErrorCategory error_category =
                 result.error ? ErrorCategory::kInstall : ErrorCategory::kNone;
             main_task_runner->PostTask(