Lines Matching refs:feature_name
49 bool GetFeatureAndTrialName(StringPiece* feature_name, in GetFeatureAndTrialName()
57 if (!pickle_iter.ReadStringPiece(feature_name)) in GetFeatureAndTrialName()
106 StringPiece feature_name; in InitializeFromSharedMemory() local
108 if (!entry->GetFeatureAndTrialName(&feature_name, &trial_name)) in InitializeFromSharedMemory()
112 RegisterOverride(feature_name, override_state, trial); in InitializeFromSharedMemory()
117 const std::string& feature_name, in IsFeatureOverriddenFromCommandLine() argument
119 auto it = overrides_.find(feature_name); in IsFeatureOverriddenFromCommandLine()
125 const std::string& feature_name, in AssociateReportingFieldTrial() argument
129 IsFeatureOverriddenFromCommandLine(feature_name, for_overridden_state)); in AssociateReportingFieldTrial()
133 OverrideEntry* entry = &overrides_.find(feature_name)->second; in AssociateReportingFieldTrial()
135 NOTREACHED() << "Feature " << feature_name in AssociateReportingFieldTrial()
144 void FeatureList::RegisterFieldTrialOverride(const std::string& feature_name, in RegisterFieldTrialOverride() argument
148 DCHECK(!ContainsKey(overrides_, feature_name) || in RegisterFieldTrialOverride()
149 !overrides_.find(feature_name)->second.field_trial) in RegisterFieldTrialOverride()
150 << "Feature " << feature_name in RegisterFieldTrialOverride()
152 << overrides_.find(feature_name)->second.field_trial->trial_name() in RegisterFieldTrialOverride()
155 RegisterOverride(feature_name, override_state, field_trial); in RegisterFieldTrialOverride()
343 StringPiece feature_name = value; in RegisterOverridesFromCommandLine() local
348 std::string::size_type pos = feature_name.find('<'); in RegisterOverridesFromCommandLine()
350 feature_name.set(value.data(), pos); in RegisterOverridesFromCommandLine()
354 RegisterOverride(feature_name, overridden_state, trial); in RegisterOverridesFromCommandLine()
358 void FeatureList::RegisterOverride(StringPiece feature_name, in RegisterOverride() argument
366 if (feature_name.starts_with("*")) { in RegisterOverride()
367 feature_name = feature_name.substr(1); in RegisterOverride()
375 feature_name.as_string(), OverrideEntry(overridden_state, field_trial))); in RegisterOverride()