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

Unified Diff: components/autofill/core/browser/credit_card.cc

Issue 2534413006: [Credit Card] Uses 4 dots in ellipsis (Closed)
Patch Set: Updates Java tests with new format for masked card numbers Created 4 years 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/credit_card.cc
diff --git a/components/autofill/core/browser/credit_card.cc b/components/autofill/core/browser/credit_card.cc
index 376ce1be872a9c0fd94efdabff32d1422b322170..2bc1ca4bf4f69bbde6b7800f543e5f83a42a0234 100644
--- a/components/autofill/core/browser/credit_card.cc
+++ b/components/autofill/core/browser/credit_card.cc
@@ -39,12 +39,15 @@ using base::ASCIIToUTF16;
namespace autofill {
-const base::char16 kMidlineEllipsis[] = { 0x22ef, 0 };
+const base::char16 kMidlineEllipsis[] = { 0x0020, 0x0020,
+ 0x2022, 0x2006,
+ 0x2022, 0x2006,
+ 0x2022, 0x2006,
+ 0x2022, 0x2006, 0 };
namespace {
const base::char16 kCreditCardObfuscationSymbol = '*';
-const base::char16 kNonBreakingSpace[] = { 0x00a0, 0 };
bool ConvertYear(const base::string16& year, int* num) {
// If the |year| is empty, clear the stored value.
@@ -499,8 +502,7 @@ base::string16 CreditCard::TypeAndLastFourDigits() const {
return type;
// TODO(estade): i18n?
- return type + base::string16(kNonBreakingSpace) +
- base::string16(kMidlineEllipsis) + digits;
+ return type + base::string16(kMidlineEllipsis) + digits;
}
base::string16 CreditCard::AbbreviatedExpirationDateForDisplay() const {

Powered by Google App Engine
This is Rietveld 408576698