chromium/components/privacy_sandbox/privacy_sandbox_features.cc

// Copyright 2022 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/privacy_sandbox/privacy_sandbox_features.h"

#include "base/feature_list.h"

namespace privacy_sandbox {

#if BUILDFLAG(IS_ANDROID)
BASE_FEATURE(kPrivacySandboxAdsNoticeCCT,
             "PrivacySandboxAdsNoticeCCT",
             base::FEATURE_DISABLED_BY_DEFAULT);

const char kPrivacySandboxAdsNoticeCCTAppIdName[] = "app-id";

const base::FeatureParam<std::string> kPrivacySandboxAdsNoticeCCTAppId{
    &kPrivacySandboxAdsNoticeCCT, kPrivacySandboxAdsNoticeCCTAppIdName, ""};

const base::FeatureParam<bool> kPrivacySandboxAdsNoticeCCTIncludeModeB{
    &kPrivacySandboxAdsNoticeCCT, "include-mode-b", false};
#endif  // BUILDFLAG(IS_ANDROID)

BASE_FEATURE();

const char kPrivacySandboxSettings4ConsentRequiredName[] =;
const char kPrivacySandboxSettings4NoticeRequiredName[] =;
const char kPrivacySandboxSettings4RestrictedNoticeName[] =;
const char kPrivacySandboxSettings4ForceShowConsentForTestingName[] =;
const char kPrivacySandboxSettings4ForceShowNoticeRowForTestingName[] =;
const char kPrivacySandboxSettings4ForceShowNoticeEeaForTestingName[] =;
const char kPrivacySandboxSettings4ForceShowNoticeRestrictedForTestingName[] =;
const char kPrivacySandboxSettings4ForceRestrictedUserForTestingName[] =;
const char kPrivacySandboxSettings4ShowSampleDataForTestingName[] =;

const base::FeatureParam<bool> kPrivacySandboxSettings4ConsentRequired{};
const base::FeatureParam<bool> kPrivacySandboxSettings4NoticeRequired{};
const base::FeatureParam<bool> kPrivacySandboxSettings4RestrictedNotice{};

const base::FeatureParam<bool>
    kPrivacySandboxSettings4ForceShowConsentForTesting{};
const base::FeatureParam<bool>
    kPrivacySandboxSettings4ForceShowNoticeRowForTesting{};
const base::FeatureParam<bool>
    kPrivacySandboxSettings4ForceShowNoticeEeaForTesting{};
const base::FeatureParam<bool>
    kPrivacySandboxSettings4ForceShowNoticeRestrictedForTesting{};
const base::FeatureParam<bool>
    kPrivacySandboxSettings4ForceRestrictedUserForTesting{};
const base::FeatureParam<bool> kPrivacySandboxSettings4ShowSampleDataForTesting{};

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

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();
const base::FeatureParam<bool> kPrivacySandboxFirstPartySetsUISampleSets{};

BASE_FEATURE();

BASE_FEATURE();

const char kPrivacySandboxEnrollmentOverrides[] =;

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

#if BUILDFLAG(IS_ANDROID)
BASE_FEATURE(kTrackingProtectionUserBypassPwa,
             "TrackingProtectionUserBypassPwa",
             base::FEATURE_DISABLED_BY_DEFAULT);

BASE_FEATURE(kTrackingProtectionUserBypassPwaTrigger,
             "TrackingProtectionUserBypassPwaTrigger",
             base::FEATURE_DISABLED_BY_DEFAULT);
#endif  // BUILDFLAG(IS_ANDROID)

BASE_FEATURE();
const base::FeatureParam<bool> kPsRedesignAdPrivacyPageEnableToggles{};

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

const char kPrivacySandboxActivityTypeStorageLastNLaunchesName[] =;

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

const char kPrivacySandboxActivityTypeStorageWithinXDaysName[] =;

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

const char kPrivacySandboxActivityTypeStorageSkipPreFirstTabName[] =;

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

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

BASE_FEATURE();

const base::FeatureParam<std::string> kPrivacySandboxSentimentSurveyTriggerId{};

}  // namespace privacy_sandbox