blob: 0d995ac0385a7d156318618add73ec257a2a3408 [file] [log] [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/component_updater/desktop_sharing_hub_component_remover.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#include "base/task/thread_pool.h"
namespace component_updater {
void DeleteDesktopSharingHub(const base::FilePath& user_data_dir) {
base::ThreadPool::PostTask(
FROM_HERE, {base::TaskPriority::BEST_EFFORT, base::MayBlock()},
base::BindOnce(
base::IgnoreResult(&base::DeletePathRecursively),
user_data_dir.Append(FILE_PATH_LITERAL("DesktopSharingHub"))));
}
} // namespace component_updater