crl_set_remover.cc 669 B

1234567891011121314151617181920
  1. // Copyright 2017 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "components/component_updater/crl_set_remover.h"
  5. #include "base/bind.h"
  6. #include "base/files/file_util.h"
  7. #include "base/task/thread_pool.h"
  8. namespace component_updater {
  9. void DeleteLegacyCRLSet(const base::FilePath& user_data_dir) {
  10. base::ThreadPool::PostTask(
  11. FROM_HERE, {base::TaskPriority::BEST_EFFORT, base::MayBlock()},
  12. base::GetDeleteFileCallback(user_data_dir.Append(
  13. FILE_PATH_LITERAL("Certificate Revocation Lists"))));
  14. }
  15. } // namespace component_updater