diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-13 20:38:57 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-13 20:38:57 +0000 |
commit | c47c9d80e93941924c8d6c5e4d7845971552b390 (patch) | |
tree | ba148e054621c580be7c6ca48c217de344f5eb04 /chrome/browser/autofill/credit_card.cc | |
parent | 4cd978f396db700a1fb3e2d6e081e76817264c9b (diff) | |
download | chromium_src-c47c9d80e93941924c8d6c5e4d7845971552b390.zip chromium_src-c47c9d80e93941924c8d6c5e4d7845971552b390.tar.gz chromium_src-c47c9d80e93941924c8d6c5e4d7845971552b390.tar.bz2 |
DOMUI: Implement adding and editing credit cards in the AutoFill page.
BUG=49094
TEST=none
Review URL: http://codereview.chromium.org/3308006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59276 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/credit_card.cc')
-rw-r--r-- | chrome/browser/autofill/credit_card.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/autofill/credit_card.cc b/chrome/browser/autofill/credit_card.cc index b85cdb5..b643da5 100644 --- a/chrome/browser/autofill/credit_card.cc +++ b/chrome/browser/autofill/credit_card.cc @@ -367,7 +367,7 @@ void CreditCard::operator=(const CreditCard& source) { expiration_month_ = source.expiration_month_; expiration_year_ = source.expiration_year_; label_ = source.label_; - billing_address_ = source.billing_address_; + billing_address_id_ = source.billing_address_id_; unique_id_ = source.unique_id_; } @@ -383,7 +383,7 @@ bool CreditCard::operator==(const CreditCard& creditcard) const { if (label_ != creditcard.label_ || unique_id_ != creditcard.unique_id_ || - billing_address_ != creditcard.billing_address_) { + billing_address_id_ != creditcard.billing_address_id_) { return false; } @@ -429,7 +429,7 @@ bool CreditCard::IsCreditCardNumber(const string16& text) { bool CreditCard::IsEmpty() const { FieldTypeSet types; GetAvailableFieldTypes(&types); - return types.empty() && billing_address().empty(); + return types.empty() && billing_address_id_ == 0; } @@ -605,7 +605,7 @@ std::ostream& operator<<(std::ostream& os, const CreditCard& creditcard) { << " " << creditcard.unique_id() << " " - << UTF16ToUTF8(creditcard.billing_address()) + << creditcard.billing_address_id() << " " << UTF16ToUTF8(creditcard.GetFieldText(AutoFillType(CREDIT_CARD_NAME))) << " " |