Mihai Sardarescu | 160ec66 | 2018-07-18 21:13:51 | [diff] [blame] | 1 | // 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 | |
| 10 | namespace unified_consent { |
| 11 | |
| 12 | // State of the "Unified Consent" feature. |
| 13 | enum 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. |
| 23 | extern const base::Feature kUnifiedConsent; |
| 24 | extern const char kUnifiedConsentShowBumpParameter[]; |
Jérôme Lebel | fe1b2e0 | 2018-08-03 12:26:20 | [diff] [blame^] | 25 | extern const base::Feature kForceUnifiedConsentBump; |
Mihai Sardarescu | 160ec66 | 2018-07-18 21:13:51 | [diff] [blame] | 26 | |
| 27 | namespace 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 |
| 34 | unified_consent::UnifiedConsentFeatureState GetUnifiedConsentFeatureState(); |
| 35 | } // namespace internal |
| 36 | |
| 37 | } // namespace unified_consent |
| 38 | |
| 39 | #endif // COMPONENTS_UNIFIED_CONSENT_FEATURE_H_ |