chromium/components/content_settings/core/common/features.cc

// 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.

#include "components/content_settings/core/common/features.h"

#include "base/feature_list.h"
#include "build/build_config.h"

namespace content_settings {

// Enables auto dark feature in theme settings.
#if BUILDFLAG(IS_ANDROID)
BASE_FEATURE(kDarkenWebsitesCheckboxInThemesSetting,
             "DarkenWebsitesCheckboxInThemesSetting",
             base::FEATURE_DISABLED_BY_DEFAULT);
constexpr base::FeatureParam<bool> kDarkenWebsitesCheckboxOptOut{
    &kDarkenWebsitesCheckboxInThemesSetting, "opt_out", true};
#endif  // BUILDFLAG(IS_ANDROID)

namespace features {

// Enables unused site permission module in Safety Check.
BASE_FEATURE();
#endif  // BUILDFLAG(IS_ANDROID)

BASE_FEATURE();

BASE_FEATURE();

const base::FeatureParam<base::TimeDelta>
    kSafetyCheckUnusedSitePermissionsRepeatedUpdateInterval{};

const base::FeatureParam<bool> kSafetyCheckUnusedSitePermissionsNoDelay{};

const base::FeatureParam<bool> kSafetyCheckUnusedSitePermissionsWithDelay{};

const base::FeatureParam<base::TimeDelta>
    kSafetyCheckUnusedSitePermissionsRevocationThreshold{};

const base::FeatureParam<base::TimeDelta>
    kSafetyCheckUnusedSitePermissionsRevocationCleanUpThreshold{};

BASE_FEATURE();

const base::FeatureParam<base::TimeDelta> kUserBypassUIExceptionExpiration{};

const base::FeatureParam<int> kUserBypassUIReloadCount{};

const base::FeatureParam<base::TimeDelta> kUserBypassUIReloadTime{};

const base::FeatureParam<base::TimeDelta> kUserBypassUIReloadBubbleTimeout{};

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

#if BUILDFLAG(IS_CHROMEOS)
BASE_FEATURE(kCrosSystemLevelPermissionBlockedWarnings,
             "CrosBlockWarnings",
             base::FEATURE_DISABLED_BY_DEFAULT);
#endif

BASE_FEATURE();

const char kTpcdReadHeuristicsGrantsName[] =;

BASE_FEATURE();

const base::FeatureParam<bool> kTpcdReadHeuristicsGrants{};

BASE_FEATURE();

}  // namespace features
}  // namespace content_settings