Home | History | Annotate | Download | only in base

Lines Matching refs:Feature

29 // Some characters are not allowed to appear in feature names or the associated
73 // Only one associated field trial is supported per feature. This is generally
77 NOTREACHED() << "Feature " << feature_name
92 << "Feature " << feature_name
135 bool FeatureList::IsEnabled(const Feature& feature) {
138 return feature.default_state == FEATURE_ENABLED_BY_DEFAULT;
140 return g_instance->IsFeatureEnabled(feature);
144 FieldTrial* FeatureList::GetFieldTrial(const Feature& feature) {
145 return GetInstance()->GetAssociatedFieldTrial(feature);
211 bool FeatureList::IsFeatureEnabled(const Feature& feature) {
213 DCHECK(IsValidFeatureOrFieldTrialName(feature.name)) << feature.name;
214 DCHECK(CheckFeatureIdentity(feature)) << feature.name;
216 auto it = overrides_.find(feature.name);
231 return feature.default_state == FEATURE_ENABLED_BY_DEFAULT;
234 FieldTrial* FeatureList::GetAssociatedFieldTrial(const Feature& feature) {
236 DCHECK(IsValidFeatureOrFieldTrialName(feature.name)) << feature.name;
237 DCHECK(CheckFeatureIdentity(feature)) << feature.name;
239 auto it = overrides_.find(feature.name);
282 // feature name takes effect.
287 bool FeatureList::CheckFeatureIdentity(const Feature& feature) {
290 auto it = feature_identity_tracker_.find(feature.name);
293 feature_identity_tracker_[feature.name] = &feature;
296 // Compare address of |feature| to the existing tracked entry.
297 return it->second == &feature;