1 // Copyright 2022 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/component_updater/url_param_filter_remover.h"
7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h"
9 #include "base/functional/bind.h"
10 #include "base/task/thread_pool.h"
12 namespace component_updater {
14 void DeleteUrlParamFilter(const base::FilePath& user_data_dir) {
15 base::ThreadPool::PostTask(
16 FROM_HERE, {base::TaskPriority::BEST_EFFORT, base::MayBlock()},
18 base::IgnoreResult(&base::DeletePathRecursively),
19 user_data_dir.Append(FILE_PATH_LITERAL("UrlParamClassifications"))));
22 } // namespace component_updater