blob: 63260332130b87ac55b7446eb66f2cd2e8e9561a [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/component_updater/crl_set_remover.h"
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/task_scheduler/post_task.h"
namespace component_updater {
void DeleteLegacyCRLSet(const base::FilePath& user_data_dir) {
base::PostTaskWithTraits(
FROM_HERE, {base::TaskPriority::BACKGROUND, base::MayBlock()},
base::BindOnce(base::IgnoreResult(&base::DeleteFile),
user_data_dir.Append(
FILE_PATH_LITERAL("Certificate Revocation Lists")),
false));
}
} // namespace component_updater