summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/personal_data_manager.cc
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 23:04:55 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 23:04:55 +0000
commit3b3a0ca7214f89a01cea18b98b3de289165a7166 (patch)
tree6a84be99eda9211c123dc384b08deceba83e22db /chrome/browser/autofill/personal_data_manager.cc
parent45e616f2c317128ed25714a8cdc35d7d8ff9f43a (diff)
downloadchromium_src-3b3a0ca7214f89a01cea18b98b3de289165a7166.zip
chromium_src-3b3a0ca7214f89a01cea18b98b3de289165a7166.tar.gz
chromium_src-3b3a0ca7214f89a01cea18b98b3de289165a7166.tar.bz2
Autofill rename GetFieldText to GetInfo
Renames AutofillProfile::GetFieldText to AutofillProfile::GetInfo. To match SetInfo. BUG=none TEST=none Review URL: http://codereview.chromium.org/6713002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78622 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/personal_data_manager.cc')
-rw-r--r--chrome/browser/autofill/personal_data_manager.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/browser/autofill/personal_data_manager.cc b/chrome/browser/autofill/personal_data_manager.cc
index ba989cc..0f26238 100644
--- a/chrome/browser/autofill/personal_data_manager.cc
+++ b/chrome/browser/autofill/personal_data_manager.cc
@@ -98,10 +98,10 @@ bool IsValidZip(const string16& value) {
// filled. No verification of validity of the contents is preformed. This is
// and existence check only.
bool IsMinimumAddress(const AutofillProfile& profile) {
- return !profile.GetFieldText(ADDRESS_HOME_LINE1).empty() &&
- !profile.GetFieldText(ADDRESS_HOME_CITY).empty() &&
- !profile.GetFieldText(ADDRESS_HOME_STATE).empty() &&
- !profile.GetFieldText(ADDRESS_HOME_ZIP).empty();
+ return !profile.GetInfo(ADDRESS_HOME_LINE1).empty() &&
+ !profile.GetInfo(ADDRESS_HOME_CITY).empty() &&
+ !profile.GetInfo(ADDRESS_HOME_STATE).empty() &&
+ !profile.GetInfo(ADDRESS_HOME_ZIP).empty();
}
// Whether we have already logged the number of profiles this session.
@@ -262,7 +262,7 @@ bool PersonalDataManager::ImportFormData(
if (group == AutofillType::PHONE_FAX)
number_type = PHONE_FAX_NUMBER;
- string16 stored_number = imported_profile->GetFieldText(number_type);
+ string16 stored_number = imported_profile->GetInfo(number_type);
if (stored_number.size() ==
static_cast<size_t>(PhoneNumber::kPrefixLength) &&
value.size() == static_cast<size_t>(PhoneNumber::kSuffixLength)) {
@@ -297,7 +297,7 @@ bool PersonalDataManager::ImportFormData(
}
if (local_imported_credit_card.get() &&
- !CreditCard::IsCreditCardNumber(local_imported_credit_card->GetFieldText(
+ !CreditCard::IsCreditCardNumber(local_imported_credit_card->GetInfo(
CREDIT_CARD_NUMBER))) {
local_imported_credit_card.reset();
}
@@ -658,19 +658,19 @@ bool PersonalDataManager::IsValidLearnableProfile(
if (!IsMinimumAddress(profile))
return false;
- string16 email = profile.GetFieldText(EMAIL_ADDRESS);
+ string16 email = profile.GetInfo(EMAIL_ADDRESS);
if (!email.empty() && !IsValidEmail(email))
return false;
// Reject profiles with invalid US state information.
- string16 state = profile.GetFieldText(ADDRESS_HOME_STATE);
+ string16 state = profile.GetInfo(ADDRESS_HOME_STATE);
if (profile.CountryCode() == "US" &&
!state.empty() && !autofill::IsValidState(state)) {
return false;
}
// Reject profiles with invalid US zip information.
- string16 zip = profile.GetFieldText(ADDRESS_HOME_ZIP);
+ string16 zip = profile.GetInfo(ADDRESS_HOME_ZIP);
if (profile.CountryCode() == "US" && !zip.empty() && !IsValidZip(zip))
return false;