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

Unified Diff: chrome/browser/autofill/autofill_credit_card_model_mac.mm

Issue 2873002: AutoFill Mac UI : Validation, CVC Removal, Credit Card year list. (Closed)
Patch Set: Sync with ToT Created 10 years, 6 months 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
Index: chrome/browser/autofill/autofill_credit_card_model_mac.mm
diff --git a/chrome/browser/autofill/autofill_credit_card_model_mac.mm b/chrome/browser/autofill/autofill_credit_card_model_mac.mm
index f75bd05efd6253e33c7db2effbcb86e21f520fde..eb87dba51549c81bc392849ad9b39312308f0d23 100644
--- a/chrome/browser/autofill/autofill_credit_card_model_mac.mm
+++ b/chrome/browser/autofill/autofill_credit_card_model_mac.mm
@@ -16,7 +16,6 @@
@synthesize creditCardNumber = creditCardNumber_;
@synthesize expirationMonth = expirationMonth_;
@synthesize expirationYear = expirationYear_;
-@synthesize cvcCode = cvcCode_;
@synthesize billingAddress = billingAddress_;
- (id)initWithCreditCard:(const CreditCard&)creditCard {
@@ -30,8 +29,6 @@
creditCard.GetFieldText(AutoFillType(CREDIT_CARD_EXP_MONTH)))];
[self setExpirationYear:SysUTF16ToNSString(
creditCard.GetFieldText(AutoFillType(CREDIT_CARD_EXP_4_DIGIT_YEAR)))];
- [self setCvcCode:SysUTF16ToNSString(
- creditCard.GetFieldText(AutoFillType(CREDIT_CARD_VERIFICATION_CODE)))];
[self setBillingAddress:SysUTF16ToNSString(
creditCard.billing_address())];
}
@@ -44,7 +41,6 @@
[creditCardNumber_ release];
[expirationMonth_ release];
[expirationYear_ release];
- [cvcCode_ release];
[billingAddress_ release];
[super dealloc];
}
@@ -60,8 +56,6 @@
base::SysNSStringToUTF16([self expirationMonth]));
creditCard->SetInfo(AutoFillType(CREDIT_CARD_EXP_4_DIGIT_YEAR),
base::SysNSStringToUTF16([self expirationYear]));
- creditCard->SetInfo(AutoFillType(CREDIT_CARD_VERIFICATION_CODE),
- base::SysNSStringToUTF16([self cvcCode]));
creditCard->set_billing_address(
base::SysNSStringToUTF16([self billingAddress]));
}

Powered by Google App Engine
This is Rietveld 408576698