#include "chrome/browser/web_applications/preinstalled_app_install_features.h"
#include <string>
#include <string_view>
#include "base/feature_list.h"
#include "base/memory/raw_ref.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_CHROMEOS)
#include "chrome/browser/enterprise/browser_management/management_service_factory.h"
#include "chromeos/constants/chromeos_features.h"
#include "components/policy/core/common/management/management_service.h"
#endif
namespace web_app {
namespace {
constexpr const std::string_view kShippedPreinstalledAppInstallFeatures[] = …;
bool g_always_enabled_for_testing = …;
struct FeatureWithEnabledFunction { … };
constexpr const FeatureWithEnabledFunction
kPreinstalledAppInstallFeaturesWithEnabledFunctions[] = …;
}
#if BUILDFLAG(IS_CHROMEOS)
BASE_FEATURE(kDocsSheetsSlidesDrivePreinstallStandaloneTabbed,
"DocsSheetsSlidesDrivePreinstallStandaloneTabbed",
base::FEATURE_DISABLED_BY_DEFAULT);
#endif
bool IsPreinstalledDocsSheetsSlidesDriveStandaloneTabbed(Profile& profile) { … }
bool IsPreinstalledAppInstallFeatureEnabled(std::string_view feature_name,
const Profile& profile) { … }
base::AutoReset<bool>
SetPreinstalledAppInstallFeatureAlwaysEnabledForTesting() { … }
}