blob: 21bd42dfa4006221b039522892440377b0a19770 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/feature_list.h"
namespace unified_consent {
// State of the "Unified Consent" feature.
enum class UnifiedConsentFeatureState {
// Unified consent is disabled.
// Unified consent is enabled, but the bump is not shown.
// Unified consent is enabled and the bump is shown.
// Improved and unified consent for privacy-related features.
extern const base::Feature kUnifiedConsent;
extern const char kUnifiedConsentShowBumpParameter[];
extern const base::Feature kForceUnifiedConsentBump;
// Returns true if the unified consent feature state is kEnabledNoBump or
// kEnabledWithBump. Note that the bump may not be enabled, even if this returns
// true. To check if the bump is enabled, use
// IsUnifiedConsentFeatureWithBumpEnabled().
bool IsUnifiedConsentFeatureEnabled();
// Returns true if the unified consent feature state is kEnabledWithBump.
bool IsUnifiedConsentFeatureWithBumpEnabled();
} // namespace unified_consent