Home | History | Annotate | Download | only in browser

Lines Matching defs:profiles

307       // Reject profiles with invalid country information.
363 // We always save imported profiles.
430 const std::vector<AutofillProfile*>& profiles = GetProfiles();
432 FindElementByGUID<AutofillProfile>(profiles, guid);
433 return (iter != profiles.end()) ? *iter : NULL;
518 const std::vector<AutofillProfile*>& profiles = GetProfiles();
519 for (std::vector<AutofillProfile*>::const_iterator iter = profiles.begin();
520 iter != profiles.end(); ++iter) {
566 const std::vector<AutofillProfile*>& profiles = GetProfiles(true);
568 for (std::vector<AutofillProfile*>::const_iterator iter = profiles.begin();
569 iter != profiles.end(); ++iter) {
730 // Reject profiles with invalid US state information.
734 // Reject profiles with invalid US zip information.
763 // Unverified profiles should always be updated with the newer data,
764 // whereas verified profiles should only ever be overwritten by verified
786 const std::vector<AutofillProfile*>& profiles = web_profiles();
788 for (size_t i = 0; i < profiles.size(); ++i) {
790 profiles[i]->GetRawInfo(ADDRESS_HOME_COUNTRY))));
824 void PersonalDataManager::SetProfiles(std::vector<AutofillProfile>* profiles) {
828 // Remove empty profiles from input.
829 profiles->erase(std::remove_if(profiles->begin(), profiles->end(),
831 profiles->end());
836 // Any profiles that are not in the new profile list should be removed from
841 if (!FindByGUID<AutofillProfile>(*profiles, (*iter)->guid()))
845 // Update the web database with the existing profiles.
846 for (std::vector<AutofillProfile>::iterator iter = profiles->begin();
847 iter != profiles->end(); ++iter) {
852 // Add the new profiles to the web database. Don't add a duplicate.
853 for (std::vector<AutofillProfile>::iterator iter = profiles->begin();
854 iter != profiles->end(); ++iter) {
860 // Copy in the new profiles.
862 for (std::vector<AutofillProfile>::iterator iter = profiles->begin();
863 iter != profiles->end(); ++iter) {
957 std::vector<AutofillProfile*> profiles = r->GetValue();
958 for (std::vector<AutofillProfile*>::iterator iter = profiles.begin();
959 iter != profiles.end(); ++iter) {
1009 std::vector<AutofillProfile> profiles;
1012 &profiles);
1013 SetProfiles(&profiles);
1065 // Count up country codes from existing profiles.
1069 const std::vector<AutofillProfile*>& profiles = web_profiles();
1072 for (size_t i = 0; i < profiles.size(); ++i) {
1074 profiles[i]->GetRawInfo(ADDRESS_HOME_COUNTRY)));
1078 // Verified profiles count 100x more than unverified ones.
1079 votes[country_code] += profiles[i]->IsVerified() ? 100 : 1;