[M120 Migration][VD] Enable direct rendering for TVPlus
[platform/framework/web/chromium-efl.git] / components / component_updater / url_param_filter_remover.cc
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.
4
5 #include "components/component_updater/url_param_filter_remover.h"
6
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"
11
12 namespace component_updater {
13
14 void DeleteUrlParamFilter(const base::FilePath& user_data_dir) {
15   base::ThreadPool::PostTask(
16       FROM_HERE, {base::TaskPriority::BEST_EFFORT, base::MayBlock()},
17       base::BindOnce(
18           base::IgnoreResult(&base::DeletePathRecursively),
19           user_data_dir.Append(FILE_PATH_LITERAL("UrlParamClassifications"))));
20 }
21
22 }  // namespace component_updater