blob: 3d5713e0e868f534ab00fba3239bf640e40a6d60 [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/post_task.h"
#include "base/task/thread_pool.h"
namespace component_updater {
void DeleteLegacyCRLSet(const base::FilePath& user_data_dir) {
base::ThreadPool::PostTask(
FROM_HERE, {base::TaskPriority::BEST_EFFORT, base::MayBlock()},
base::BindOnce(base::GetDeleteFileCallback(),
user_data_dir.Append(
FILE_PATH_LITERAL("Certificate Revocation Lists"))));
}
} // namespace component_updater