Home | History | Annotate | Download | only in autofill

Lines Matching defs:profile

191 AutofillProfile::AutofillProfile(const AutofillProfile& profile)
193 operator=(profile);
199 AutofillProfile& AutofillProfile::operator=(const AutofillProfile& profile) {
200 if (this == &profile)
203 label_ = profile.label_;
204 guid_ = profile.guid_;
206 name_ = profile.name_;
207 email_ = profile.email_;
208 company_ = profile.company_;
209 home_number_ = profile.home_number_;
210 fax_number_ = profile.fax_number_;
211 address_ = profile.address_;
350 // Construct the default label for each profile. Also construct a map that
371 // We have more than one profile with the same label, so add
385 int AutofillProfile::Compare(const AutofillProfile& profile) const {
387 // so far, so we're only concerned with matching these types in the profile.
404 profile.GetInfo(types[index]));
412 int AutofillProfile::CompareMulti(const AutofillProfile& profile) const {
423 profile.GetInfo(single_value_types[i]));
439 profile.GetMultiInfo(multi_value_types[i], &values_b);
454 bool AutofillProfile::operator==(const AutofillProfile& profile) const {
455 return guid_ == profile.guid_ && Compare(profile) == 0;
458 bool AutofillProfile::operator!=(const AutofillProfile& profile) const {
459 return !operator==(profile);
467 void AutofillProfile::OverwriteWithOrAddTo(const AutofillProfile& profile) {
469 profile.GetAvailableFieldTypes(&field_types);
479 profile.GetMultiInfo(*iter, &new_values);
492 SetInfo(*iter, profile.GetInfo(*iter));
547 const AutofillProfile* profile = profiles[*it];
548 string16 field_text = profile->GetInfo(*field);
559 // Now comes the meat of the algorithm. For each profile, we scan the list of
561 // 1. A (non-empty) field that differentiates the profile from all others
568 const AutofillProfile* profile = profiles[*it];
575 string16 field_text = profile->GetInfo(*field);
601 profile->ConstructInferredLabel(label_fields,
650 std::ostream& operator<<(std::ostream& os, const AutofillProfile& profile) {
652 << UTF16ToUTF8(profile.Label())
654 << profile.guid()
656 << UTF16ToUTF8(MultiString(profile, NAME_FIRST))
658 << UTF16ToUTF8(MultiString(profile, NAME_MIDDLE))
660 << UTF16ToUTF8(MultiString(profile, NAME_LAST))
662 << UTF16ToUTF8(MultiString(profile, EMAIL_ADDRESS))
664 << UTF16ToUTF8(profile.GetInfo(COMPANY_NAME))
666 << UTF16ToUTF8(profile.GetInfo(ADDRESS_HOME_LINE1))
668 << UTF16ToUTF8(profile.GetInfo(ADDRESS_HOME_LINE2))
670 << UTF16ToUTF8(profile.GetInfo(ADDRESS_HOME_CITY))
672 << UTF16ToUTF8(profile.GetInfo(ADDRESS_HOME_STATE))
674 << UTF16ToUTF8(profile.GetInfo(ADDRESS_HOME_ZIP))
676 << UTF16ToUTF8(profile.GetInfo(ADDRESS_HOME_COUNTRY))
678 << UTF16ToUTF8(MultiString(profile, PHONE_HOME_WHOLE_NUMBER))
680 << UTF16ToUTF8(MultiString(profile, PHONE_FAX_WHOLE_NUMBER));