Lines Matching refs:feature_name
49 bool GetFeatureAndTrialName(StringPiece* feature_name, in GetFeatureAndTrialName()
57 if (!pickle_iter.ReadStringPiece(feature_name)) in GetFeatureAndTrialName()
111 StringPiece feature_name; in InitializeFromSharedMemory() local
113 if (!entry->GetFeatureAndTrialName(&feature_name, &trial_name)) in InitializeFromSharedMemory()
117 RegisterOverride(feature_name, override_state, trial); in InitializeFromSharedMemory()
122 const std::string& feature_name, in IsFeatureOverriddenFromCommandLine() argument
124 auto it = overrides_.find(feature_name); in IsFeatureOverriddenFromCommandLine()
130 const std::string& feature_name, in AssociateReportingFieldTrial() argument
134 IsFeatureOverriddenFromCommandLine(feature_name, for_overridden_state)); in AssociateReportingFieldTrial()
138 OverrideEntry* entry = &overrides_.find(feature_name)->second; in AssociateReportingFieldTrial()
140 NOTREACHED() << "Feature " << feature_name in AssociateReportingFieldTrial()
149 void FeatureList::RegisterFieldTrialOverride(const std::string& feature_name, in RegisterFieldTrialOverride() argument
153 DCHECK(!ContainsKey(overrides_, feature_name) || in RegisterFieldTrialOverride()
154 !overrides_.find(feature_name)->second.field_trial) in RegisterFieldTrialOverride()
155 << "Feature " << feature_name in RegisterFieldTrialOverride()
157 << overrides_.find(feature_name)->second.field_trial->trial_name() in RegisterFieldTrialOverride()
160 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()