blob: aff064f435980ce8d8f37ce8e925cf8ee47dedd1 [file] [log] [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_WEB_APPLICATIONS_PREINSTALLED_APP_INSTALL_FEATURES_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_PREINSTALLED_APP_INSTALL_FEATURES_H_
#include "base/auto_reset.h"
#include "base/feature_list.h"
#include "base/strings/string_piece_forward.h"
#include "build/build_config.h"
class Profile;
namespace web_app {
#if BUILDFLAG(IS_CHROMEOS)
BASE_DECLARE_FEATURE(kCursiveManagedStylusPreinstall);
BASE_DECLARE_FEATURE(kMessagesPreinstall);
#endif // BUILDFLAG(IS_CHROMEOS)
// Returns the base::Feature in |kPreinstalledAppInstallFeatures| that
// corresponds to |feature_name|. Used by external app install configs to gate
// installation on features listed in |kPreinstalledAppInstallFeatures|.
bool IsPreinstalledAppInstallFeatureEnabled(base::StringPiece feature_name,
const Profile& profile);
base::AutoReset<bool> SetPreinstalledAppInstallFeatureAlwaysEnabledForTesting();
} // namespace web_app
#endif // CHROME_BROWSER_WEB_APPLICATIONS_PREINSTALLED_APP_INSTALL_FEATURES_H_