Commit 6b961986 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Use base::GetDeleteFileCallback() in c/b/chromeos.

Now that this function exists, there is no need to reinvent it.

Bug: 1009837
Change-Id: I2980378d90d7c2f7440caec519d532d3656ee569
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2261696Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#782013}
parent aa24223a
......@@ -61,11 +61,8 @@ void ArcAppInstallEventLogManager::Clear(
Profile* profile) {
AppInstallEventLogger::Clear(profile);
log_task_runner_wrapper->GetTaskRunner()->PostTask(
FROM_HERE, base::BindOnce(
[](const base::FilePath& log_file_path) {
base::DeleteFile(log_file_path, false /* recursive */);
},
GetLogFilePath(*profile)));
FROM_HERE,
base::BindOnce(base::GetDeleteFileCallback(), GetLogFilePath(*profile)));
}
void ArcAppInstallEventLogManager::Add(
......
......@@ -62,11 +62,8 @@ void ExtensionInstallEventLogManager::Clear(
LogTaskRunnerWrapper* log_task_runner_wrapper,
Profile* profile) {
log_task_runner_wrapper->GetTaskRunner()->PostTask(
FROM_HERE, base::BindOnce(
[](const base::FilePath& log_file_path) {
base::DeleteFile(log_file_path, false /* recursive */);
},
GetLogFilePath(*profile)));
FROM_HERE,
base::BindOnce(base::GetDeleteFileCallback(), GetLogFilePath(*profile)));
}
void ExtensionInstallEventLogManager::Add(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment