// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_FEATURE_ENGAGEMENT_PUBLIC_FEATURE_LIST_H_ #define COMPONENTS_FEATURE_ENGAGEMENT_PUBLIC_FEATURE_LIST_H_ #include <vector> #include "base/feature_list.h" #include "build/build_config.h" #include "components/feature_engagement/public/feature_constants.h" #include "components/flags_ui/feature_entry.h" #include "extensions/buildflags/buildflags.h" namespace feature_engagement { FeatureVector; // The param name for the FeatureVariation configuration, which is used by // chrome://flags to set the variable name for the selected feature. The Tracker // backend will then read this to figure out which feature (if any) was selected // by the end user. extern const char kIPHDemoModeFeatureChoiceParam[]; namespace … // namespace // Defines the array of which features should be listed in the chrome://flags // UI to be able to select them alone for demo-mode. The features listed here // are possible to enable on their own in demo mode. constexpr flags_ui::FeatureEntry::FeatureVariation kIPHDemoModeChoiceVariations[] = …; #undef DEFINE_VARIATION_PARAM #undef VARIATION_ENTRY // Returns all the features that are in use for engagement tracking. FeatureVector GetAllFeatures(); } // namespace feature_engagement #endif // COMPONENTS_FEATURE_ENGAGEMENT_PUBLIC_FEATURE_LIST_H_