blob: 2598e7d37720c3b15eae63f65af4a18cf77485bf [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"
namespace component_updater {
void DeleteLegacyCRLSet(const base::FilePath& user_data_dir) {
base::PostTaskWithTraits(
FROM_HERE, {base::TaskPriority::BEST_EFFORT, base::MayBlock()},
base::BindOnce(base::IgnoreResult(&base::DeleteFile),
user_data_dir.Append(
FILE_PATH_LITERAL("Certificate Revocation Lists")),
false));
}
} // namespace component_updater