chrome/browser/ui/search/search.cc
// Given a FieldTrialFlags object, returns the string value of the provided
// flag.
Given a FieldTrialFlags object, returns the string value of the provided
flag.
Given a FieldTrialFlags object returns the string value of the provided flag .
std::string GetStringValueForFlagWithDefault(
    const std::string& flag,
    const std::string& default_value,
    FieldTrialFlags& flags) {
  FieldTrialFlags::const_iterator i;
  for (i = flags.begin(); i != flags.end(); i++) {
    if (i->first == flag)
      return i->second;
  }
  return default_value;
}
std :: string GetStringValueForFlagWithDefault ( const std :: string & flag , const std :: string & default_value , FieldTrialFlags & flags ) { FieldTrialFlags :: const_iterator i ; for ( i = flags . begin ( ) ; i != flags . end ( ) ; i ++ ) { if ( i -> first == flag ) return i -> second ; } return default_value ; }
Given a FieldTrialFlags object, returns the string value of the provided
flag.
Given a FieldTrialFlags object returns the string value of the provided flag .