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

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
« components/autofill.gypi ('K') | « 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 ff81bcc4745bd796ce5b848c2f0abe72d652bdd9..b6974ff1fef539a56e19cfba9dc766fd1b40f81b 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());
« components/autofill.gypi ('K') | « components/autofill.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698