commit | 091d423516b4d74a4f0135296ec1f3b7586355a9 | [log] [tgz] |
---|---|---|
author | Lei Zhang <[email protected]> | Tue Oct 15 21:12:51 2019 |
committer | Commit Bot <[email protected]> | Tue Oct 15 21:12:51 2019 |
tree | b2ceb45423e9c947c686160e7ceac531fdeb2436 | |
parent | c32018959dee997994148c558345ca61e041a2a8 [diff] [blame] |
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(