blob: 6096def69b705cf09101078204e82f84288d52cc [file] [log] [blame]
Kristi Park01ca1252019-05-10 22:39:051// Copyright 2019 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "components/ntp_tiles/features.h"
6
7#include "base/feature_list.h"
Justin DeWitt03ae1bd2019-09-10 22:39:518#include "build/build_config.h"
Kristi Park01ca1252019-05-10 22:39:059#include "ui/base/ui_base_features.h"
10
11namespace ntp_tiles {
12
13const char kPopularSitesFieldTrialName[] = "NTPPopularSites";
14
15const base::Feature kPopularSitesBakedInContentFeature{
16 "NTPPopularSitesBakedInContent", base::FEATURE_ENABLED_BY_DEFAULT};
17
18const base::Feature kNtpMostLikelyFaviconsFromServerFeature{
19 "NTPMostLikelyFaviconsFromServer", base::FEATURE_ENABLED_BY_DEFAULT};
20
21const base::Feature kUsePopularSitesSuggestions{
22 "UsePopularSitesSuggestions", base::FEATURE_ENABLED_BY_DEFAULT};
23
Justin DeWitt03ae1bd2019-09-10 22:39:5124const base::FeatureState kDisplaySuggestionsServiceTilesDefaultState =
25#if defined(OS_ANDROID) || defined(OS_IOS)
26 base::FEATURE_DISABLED_BY_DEFAULT;
27#else
28 base::FEATURE_ENABLED_BY_DEFAULT;
29#endif
30
31const base::Feature kDisplaySuggestionsServiceTiles{
32 "DisplaySuggestionsServiceTiles",
33 kDisplaySuggestionsServiceTilesDefaultState};
34
Kristi Park01ca1252019-05-10 22:39:0535} // namespace ntp_tiles