diff options
author | dbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-29 11:48:30 +0000 |
---|---|---|
committer | dbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-29 11:48:30 +0000 |
commit | b56e4322d94e23ca644557c09b5a5829635e5127 (patch) | |
tree | 89650e7936eb20f4252f84989b4dc924c5720902 /components | |
parent | 74b18cf24aea1fb1ad83ad4a31c5683b48ec5cb0 (diff) | |
download | chromium_src-b56e4322d94e23ca644557c09b5a5829635e5127.zip chromium_src-b56e4322d94e23ca644557c09b5a5829635e5127.tar.gz chromium_src-b56e4322d94e23ca644557c09b5a5829635e5127.tar.bz2 |
Making credit card number un-editable in Wallet mode.
Also adds a way of generically making any textfield or combobox disabled if necessary.
R=estade@chromium.org
BUG=180147
Review URL: https://chromiumcodereview.appspot.com/15979002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202847 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components')
-rw-r--r-- | components/autofill.gypi | 9 | ||||
-rw-r--r-- | components/autofill/browser/wallet/wallet_items.cc | 3 |
2 files changed, 10 insertions, 2 deletions
diff --git a/components/autofill.gypi b/components/autofill.gypi index 424d542..17a331d 100644 --- a/components/autofill.gypi +++ b/components/autofill.gypi @@ -35,6 +35,15 @@ }, 'includes': [ '../build/protoc.gypi' ] }, + { + 'target_name': 'autofill_test_util', + 'type': 'static_library', + 'sources': [ + 'autofill/browser/wallet/wallet_test_util.cc', + 'autofill/browser/wallet/wallet_test_util.h', + ], + 'include_dirs': [ '..' ], + }, ], 'conditions': [ ['OS != "ios"', { diff --git a/components/autofill/browser/wallet/wallet_items.cc b/components/autofill/browser/wallet/wallet_items.cc index 062496f..771dd19 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()); |