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

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

Issue 1540423004: Add card details and legal message to Android save credit card infobar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Justin's nits. Created 4 years, 11 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 da0fe377b4fbd91a107a809585f88cfcbee9479f..39ca8f19d11bcf020a4b71463d283e9e95e7b3ef 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
@@ -216,12 +216,13 @@ base::string16 CardUnmaskPromptControllerImpl::GetWindowTitle() const {
// The iOS UI has less room for the title and places a "Verify" button right
// next to it so the full title ("Verify your" + type and last four) is
// unnecessary.
- return card_.TypeAndLastFourDigits();
+ return card_.TypeAndLastFourDigitsForDisplay();
#else
int ids = ShouldRequestExpirationDate()
? IDS_AUTOFILL_CARD_UNMASK_PROMPT_UPDATE_TITLE
: IDS_AUTOFILL_CARD_UNMASK_PROMPT_TITLE;
- return l10n_util::GetStringFUTF16(ids, card_.TypeAndLastFourDigits());
+ return l10n_util::GetStringFUTF16(ids,
+ card_.TypeAndLastFourDigitsForDisplay());
#endif
}

Powered by Google App Engine
This is Rietveld 408576698