blob: b42de3530e09d7d5a851969fa93b0ed5f651030e [file] [log] [blame]
Mihai Sardarescu160ec662018-07-18 21:13:511// Copyright 2018 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#ifndef COMPONENTS_UNIFIED_CONSENT_FEATURE_H_
6#define COMPONENTS_UNIFIED_CONSENT_FEATURE_H_
7
8#include "base/feature_list.h"
9
10namespace unified_consent {
11
12// State of the "Unified Consent" feature.
13enum class UnifiedConsentFeatureState {
14 // Unified consent is disabled.
15 kDisabled,
16 // Unified consent is enabled, but the bump is not shown.
17 kEnabledNoBump,
18 // Unified consent is enabled and the bump is shown.
19 kEnabledWithBump
20};
21
22// Improved and unified consent for privacy-related features.
23extern const base::Feature kUnifiedConsent;
24extern const char kUnifiedConsentShowBumpParameter[];
Jérôme Lebelfe1b2e02018-08-03 12:26:2025extern const base::Feature kForceUnifiedConsentBump;
Mihai Sardarescu160ec662018-07-18 21:13:5126
27namespace internal {
28// Returns the state of the "Unified Consent" feature.
29//
30// WARNING: Do not call this method directly to check whether unfied consent
31// is enabled. Please use the per-platfome functions defined in
32// * chrome/browser/signin/unified_consent_helper.h
33// * ios/chrome/browser/unified_consent/feature.h
34unified_consent::UnifiedConsentFeatureState GetUnifiedConsentFeatureState();
35} // namespace internal
36
37} // namespace unified_consent
38
39#endif // COMPONENTS_UNIFIED_CONSENT_FEATURE_H_