Ehimare Okoyomon | 2eccb607 | 2020-05-12 12:22:27 | [diff] [blame] | 1 | // Copyright 2020 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 | |
Olesia Marukhno | 46ccd43 | 2021-12-03 08:50:27 | [diff] [blame] | 5 | #include "components/page_info/core/features.h" |
Ehimare Okoyomon | 2eccb607 | 2020-05-12 12:22:27 | [diff] [blame] | 6 | |
| 7 | #include "base/feature_list.h" |
| 8 | #include "base/metrics/field_trial_params.h" |
Xiaohan Wang | d9e3b1f0 | 2022-01-14 14:48:35 | [diff] [blame] | 9 | #include "build/build_config.h" |
Ehimare Okoyomon | 2eccb607 | 2020-05-12 12:22:27 | [diff] [blame] | 10 | |
| 11 | namespace page_info { |
| 12 | |
Xiaohan Wang | d9e3b1f0 | 2022-01-14 14:48:35 | [diff] [blame] | 13 | #if BUILDFLAG(IS_ANDROID) |
Jordan Oroshiba | 244e9ff | 2021-02-04 22:20:39 | [diff] [blame] | 14 | const base::Feature kPageInfoHistory{"PageInfoHistory", |
Ehimare Okoyomon | 8bfbe777 | 2021-11-15 15:40:57 | [diff] [blame] | 15 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Zhiyuan Cai | abef340 | 2021-09-23 19:15:32 | [diff] [blame] | 16 | const base::Feature kPageInfoStoreInfo{"PageInfoStoreInfo", |
| 17 | base::FEATURE_DISABLED_BY_DEFAULT}; |
Christian Dullweber | 2b2f02a | 2022-02-08 19:06:08 | [diff] [blame^] | 18 | |
| 19 | const base::Feature kPageInfoDiscoverability{"PageInfoDiscoverability", |
| 20 | base::FEATURE_ENABLED_BY_DEFAULT}; |
Christian Dullweber | 3f91c90c8 | 2020-09-09 10:48:26 | [diff] [blame] | 21 | #endif |
Ehimare Okoyomon | 2eccb607 | 2020-05-12 12:22:27 | [diff] [blame] | 22 | |
Olesia Marukhno | 0fc754b | 2021-09-17 15:05:06 | [diff] [blame] | 23 | const base::Feature kPageInfoAboutThisSite{"PageInfoAboutThisSite", |
| 24 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 25 | |
Christian Dullweber | d933ad5 | 2021-10-28 09:31:23 | [diff] [blame] | 26 | const base::FeatureParam<bool> kShowSampleContent{&kPageInfoAboutThisSite, |
Christian Dullweber | 8303ced | 2022-01-28 13:53:22 | [diff] [blame] | 27 | "ShowSampleContent", false}; |
Christian Dullweber | d933ad5 | 2021-10-28 09:31:23 | [diff] [blame] | 28 | |
Xiaohan Wang | d9e3b1f0 | 2022-01-14 14:48:35 | [diff] [blame] | 29 | #if !BUILDFLAG(IS_ANDROID) |
Olesia Marukhno | 72f4747 | 2021-12-13 16:53:37 | [diff] [blame] | 30 | const base::Feature kPageInfoHistoryDesktop{"PageInfoHistoryDesktop", |
| 31 | base::FEATURE_DISABLED_BY_DEFAULT}; |
| 32 | #endif |
| 33 | |
Olesia Marukhno | 4d09c907 | 2021-04-08 09:43:23 | [diff] [blame] | 34 | } // namespace page_info |