blob: 19dcc30e96798aba6f158f721a82e23c125e6f3c [file] [log] [blame]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/webapps/browser/uninstall_result_code.h"
#include <string>
namespace webapps {
std::string ConvertUninstallResultCodeToString(UninstallResultCode code) {
switch (code) {
case UninstallResultCode::kSuccess:
return "Success";
case UninstallResultCode::kNoAppToUninstall:
return "No App found for uninstall";
case UninstallResultCode::kCancelled:
return "Uninstall cancelled";
case UninstallResultCode::kError:
return "Error";
}
}
} // namespace webapps