Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Unified Diff: chrome/browser/autofill/credit_card.cc

Issue 11360055: [Autofill] Rename GetInfo and SetInfo to GetRawInfo and SetRawInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase harder Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autofill/credit_card.h ('k') | chrome/browser/autofill/credit_card_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/credit_card.cc
diff --git a/chrome/browser/autofill/credit_card.cc b/chrome/browser/autofill/credit_card.cc
index 92f9c657df9a211468cfd033215f5724f5ac6f73..2dfb47ec2aacbca714ef146e3374260403a48810 100644
--- a/chrome/browser/autofill/credit_card.cc
+++ b/chrome/browser/autofill/credit_card.cc
@@ -243,7 +243,7 @@ void CreditCard::GetSupportedTypes(FieldTypeSet* supported_types) const {
supported_types->insert(CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR);
}
-string16 CreditCard::GetInfo(AutofillFieldType type) const {
+string16 CreditCard::GetRawInfo(AutofillFieldType type) const {
switch (type) {
case CREDIT_CARD_NAME:
return name_on_card_;
@@ -289,7 +289,7 @@ string16 CreditCard::GetInfo(AutofillFieldType type) const {
}
}
-void CreditCard::SetInfo(AutofillFieldType type, const string16& value) {
+void CreditCard::SetRawInfo(AutofillFieldType type, const string16& value) {
switch (type) {
case CREDIT_CARD_NAME:
name_on_card_ = value;
@@ -340,15 +340,15 @@ string16 CreditCard::GetCanonicalizedInfo(AutofillFieldType type) const {
if (type == CREDIT_CARD_NUMBER)
return StripSeparators(number_);
- return GetInfo(type);
+ return GetRawInfo(type);
}
bool CreditCard::SetCanonicalizedInfo(AutofillFieldType type,
const string16& value) {
if (type == CREDIT_CARD_NUMBER)
- SetInfo(type, StripSeparators(value));
+ SetRawInfo(type, StripSeparators(value));
else
- SetInfo(type, value);
+ SetRawInfo(type, value);
return true;
}
@@ -467,8 +467,8 @@ int CreditCard::Compare(const CreditCard& credit_card) const {
CREDIT_CARD_EXP_MONTH,
CREDIT_CARD_EXP_4_DIGIT_YEAR };
for (size_t index = 0; index < arraysize(types); ++index) {
- int comparison = GetInfo(types[index]).compare(
- credit_card.GetInfo(types[index]));
+ int comparison = GetRawInfo(types[index]).compare(
+ credit_card.GetRawInfo(types[index]));
if (comparison != 0)
return comparison;
}
@@ -607,15 +607,15 @@ std::ostream& operator<<(std::ostream& os, const CreditCard& credit_card) {
<< " "
<< credit_card.guid()
<< " "
- << UTF16ToUTF8(credit_card.GetInfo(CREDIT_CARD_NAME))
+ << UTF16ToUTF8(credit_card.GetRawInfo(CREDIT_CARD_NAME))
<< " "
- << UTF16ToUTF8(credit_card.GetInfo(CREDIT_CARD_TYPE))
+ << UTF16ToUTF8(credit_card.GetRawInfo(CREDIT_CARD_TYPE))
<< " "
- << UTF16ToUTF8(credit_card.GetInfo(CREDIT_CARD_NUMBER))
+ << UTF16ToUTF8(credit_card.GetRawInfo(CREDIT_CARD_NUMBER))
<< " "
- << UTF16ToUTF8(credit_card.GetInfo(CREDIT_CARD_EXP_MONTH))
+ << UTF16ToUTF8(credit_card.GetRawInfo(CREDIT_CARD_EXP_MONTH))
<< " "
- << UTF16ToUTF8(credit_card.GetInfo(CREDIT_CARD_EXP_4_DIGIT_YEAR));
+ << UTF16ToUTF8(credit_card.GetRawInfo(CREDIT_CARD_EXP_4_DIGIT_YEAR));
}
// These values must match the values in WebKitPlatformSupportImpl in
« no previous file with comments | « chrome/browser/autofill/credit_card.h ('k') | chrome/browser/autofill/credit_card_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698