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

Unified Diff: chrome/browser/ui/autofill/data_model_wrapper.cc

Issue 17099006: Validate saved credit card number in interactive autocomplete (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge master Created 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/data_model_wrapper_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/autofill/data_model_wrapper.cc
diff --git a/chrome/browser/ui/autofill/data_model_wrapper.cc b/chrome/browser/ui/autofill/data_model_wrapper.cc
index 618a22e34d73c9b41f60ee39ffacfed40e0345f1..3ab75c43fbe709ad213cbb44eb1da3842221dbea 100644
--- a/chrome/browser/ui/autofill/data_model_wrapper.cc
+++ b/chrome/browser/ui/autofill/data_model_wrapper.cc
@@ -140,12 +140,8 @@ gfx::Image AutofillCreditCardWrapper::GetIcon() {
}
string16 AutofillCreditCardWrapper::GetDisplayText() {
- if (!autofill::IsValidCreditCardExpirationDate(
- card_->GetRawInfo(CREDIT_CARD_EXP_4_DIGIT_YEAR),
- card_->GetRawInfo(CREDIT_CARD_EXP_MONTH),
- base::Time::Now())) {
+ if (!card_->IsValid())
return string16();
- }
return card_->TypeAndLastFourDigits();
}
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/data_model_wrapper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698