blob: 898e70981fa66ab50cfbb85f9ecdc5fd468c8083 [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 "components/unified_consent/feature.h"
#include "build/build_config.h"
namespace unified_consent {
// base::Feature definition.
const base::Feature kUnifiedConsent {
"UnifiedConsent",
#if defined(OS_LINUX) || defined(OS_WIN) || \
(defined(OS_MACOSX) && !defined(OS_IOS))
base::FEATURE_ENABLED_BY_DEFAULT
#else
base::FEATURE_DISABLED_BY_DEFAULT
#endif
};
bool IsUnifiedConsentFeatureEnabled() {
return base::FeatureList::IsEnabled(kUnifiedConsent);
}
} // namespace unified_consent