#include "chrome/browser/web_applications/commands/uninstall_all_user_installed_web_apps_command.h"
#include "base/check.h"
#include "base/containers/enum_set.h"
#include "base/functional/bind.h"
#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
#include "chrome/browser/web_applications/locks/all_apps_lock.h"
#include "chrome/browser/web_applications/web_app_constants.h"
#include "chrome/browser/web_applications/web_app_registrar.h"
#include "components/sync/base/data_type.h"
#include "components/webapps/browser/uninstall_result_code.h"
namespace web_app {
namespace {
std::string TypesToString(const WebAppManagementTypes& types) { … }
std::optional<std::string> ConstructErrorMessage(
const std::vector<std::string>& errors) { … }
}
UninstallAllUserInstalledWebAppsCommand::
UninstallAllUserInstalledWebAppsCommand(
webapps::WebappUninstallSource uninstall_source,
Profile& profile,
Callback callback)
: … { … }
UninstallAllUserInstalledWebAppsCommand::
~UninstallAllUserInstalledWebAppsCommand() = default;
void UninstallAllUserInstalledWebAppsCommand::StartWithLock(
std::unique_ptr<AllAppsLock> lock) { … }
void UninstallAllUserInstalledWebAppsCommand::ProcessNextUninstallOrComplete() { … }
void UninstallAllUserInstalledWebAppsCommand::JobComplete(
WebAppManagementTypes types,
webapps::UninstallResultCode code) { … }
}