chromium/extensions/common/features/feature_flags.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "extensions/common/features/feature_flags.h"

#include <algorithm>

#include "base/check.h"
#include "base/compiler_specific.h"
#include "base/feature_list.h"
#include "base/ranges/algorithm.h"
#include "extensions/common/extension_features.h"

namespace extensions {

namespace {

// Feature flags for extension features. These can be used to implement remote
// kill switches for extension features. Note any such feature flags must
// generally be removed once the API has been stable for a few releases.
const base::Feature* kFeatureFlags[] =;

constinit base::span<const base::Feature*> g_feature_flags_test_override;

const base::Feature* GetFeature(const std::string& feature_flag) {}

}  // namespace

bool IsFeatureFlagEnabled(const std::string& feature_flag) {}

ScopedFeatureFlagsOverride CreateScopedFeatureFlagsOverrideForTesting(
    base::span<const base::Feature*> features) {}

}  // namespace extensions