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

Unified Diff: components/autofill/browser/wallet/wallet_items.cc

Issue 15979002: Making credit card number un-editable in Wallet mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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 | « components/autofill.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/browser/wallet/wallet_items.cc
diff --git a/components/autofill/browser/wallet/wallet_items.cc b/components/autofill/browser/wallet/wallet_items.cc
index 062496f9f4ee69d9013408c12d5c7de8f5da4687..771dd193664b013536278dc4f96ce1e56307113d 100644
--- a/components/autofill/browser/wallet/wallet_items.cc
+++ b/components/autofill/browser/wallet/wallet_items.cc
@@ -324,8 +324,7 @@ base::string16 WalletItems::MaskedInstrument::GetInfo(
return address().recipient_name();
case CREDIT_CARD_NUMBER:
- // TODO(dbeam): show these as XXXX-#### and non-editable in the UI.
- return last_four_digits();
+ return DisplayName();
case CREDIT_CARD_EXP_4_DIGIT_YEAR:
return base::IntToString16(expiration_year());
« no previous file with comments | « components/autofill.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698