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

Unified Diff: components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc

Issue 1926553002: Prompt for expiration date for local cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc
diff --git a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc
index d7a1dab411d73352a8d96938098e783a9c369a02..21175e6169b8f5444441d02031fe8770d9cd9ece 100644
--- a/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc
+++ b/components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc
@@ -267,8 +267,7 @@ int CardUnmaskPromptControllerImpl::GetCvcImageRid() const {
}
bool CardUnmaskPromptControllerImpl::ShouldRequestExpirationDate() const {
- return card_.GetServerStatus() == CreditCard::EXPIRED ||
- new_card_link_clicked_;
+ return card_.ShouldUpdateExpiration() || new_card_link_clicked_;
}
bool CardUnmaskPromptControllerImpl::CanStoreLocally() const {

Powered by Google App Engine
This is Rietveld 408576698