chromium/components/flags_ui/feature_entry.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/40285824): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "components/flags_ui/feature_entry.h"

#include "base/check_op.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "ui/base/l10n/l10n_util.h"

namespace flags_ui {

// WARNING: '@' is also used in the html file. If you update this constant you
// also need to update the html file.
const char kMultiSeparatorChar =;

// These descriptions are translated for display in Chrome Labs. If these
// strings are changed the translated strings in Chrome Labs must also be
// changed (IDS_CHROMELABS_XXX).
const char kGenericExperimentChoiceDefault[] =;
const char kGenericExperimentChoiceEnabled[] =;
const char kGenericExperimentChoiceDisabled[] =;
const char kGenericExperimentChoiceAutomatic[] =;

bool FeatureEntry::InternalNameMatches(const std::string& name) const {}

int FeatureEntry::NumOptions() const {}

std::string FeatureEntry::NameForOption(int index) const {}

// The order in which these descriptions are returned is the same in the
// LabsComboboxModel::GetItemAt(..) (in the chrome_labs_item_view.cc file) for
// the translated version of these strings. If there are changes to this, the
// same changes must be made in LabsComboboxModel
std::u16string FeatureEntry::DescriptionForOption(int index) const {}

const FeatureEntry::Choice& FeatureEntry::ChoiceForOption(int index) const {}

FeatureEntry::FeatureState FeatureEntry::StateForOption(int index) const {}

const FeatureEntry::FeatureVariation* FeatureEntry::VariationForOption(
    int index) const {}

bool FeatureEntry::IsValid() const {}

const base::span<const FeatureEntry::FeatureVariation>
FeatureEntry::GetVariations() const {}

namespace testing {

const char kMultiSeparator[] =;

}  // namespace testing

}  // namespace flags_ui