| // Copyright 2019 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_NTP_TILES_FEATURES_H_ |
| #define COMPONENTS_NTP_TILES_FEATURES_H_ |
| |
| #include "base/feature_list.h" |
| |
| namespace ntp_tiles { |
| |
| // Experiment groups for the new tab page field trial experiments. |
| enum class NewTabPageFieldTrialExperimentBehavior { |
| // Default. |
| kDefault = 0, |
| // Hides all NTP tiles for new users. |
| kTileAblationHideAll = 1, |
| // Hides most visited tiles for new users. |
| kTileAblationHideMVTOnly = 2, |
| // Control group for tile ablation. |
| kTileAblationControl = 3, |
| }; |
| |
| // Name of the field trial to configure PopularSites. |
| extern const char kPopularSitesFieldTrialName[]; |
| |
| // This feature is enabled by default. Otherwise, users who need it would not |
| // get the right configuration timely enough. The configuration affects only |
| // Android or iOS users. |
| BASE_DECLARE_FEATURE(kPopularSitesBakedInContentFeature); |
| |
| // Feature to allow the new Google favicon server for fetching favicons for Most |
| // Likely tiles on the New Tab Page. |
| BASE_DECLARE_FEATURE(kNtpMostLikelyFaviconsFromServerFeature); |
| |
| // If this feature is enabled, we enable popular sites in the suggestions UI. |
| BASE_DECLARE_FEATURE(kUsePopularSitesSuggestions); |
| |
| // Feature flag to enable new tab page field trial experiment on IOS. |
| // Use `GetNewTabPageFieldTrialExperimentType()` instead of this |
| // constant directly. |
| BASE_DECLARE_FEATURE(kNewTabPageFieldTrial); |
| |
| // Feature name for the NTP field trial. |
| extern const char kNewTabPageFieldTrialName[]; |
| |
| // Feature parameters for the new tab page experiment. |
| extern const char kNewTabPageFieldTrialParam[]; |
| |
| // Returns the currently enabled NTP field trial experiment type. If none are |
| // enabled, returns the default value. |
| NewTabPageFieldTrialExperimentBehavior GetNewTabPageFieldTrialExperimentType(); |
| |
| } // namespace ntp_tiles |
| |
| #endif // COMPONENTS_NTP_TILES_FEATURES_H_ |