diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 05:41:34 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-04-06 05:41:34 +0000 |
commit | 3e6e82da372f9508e8819f84b03716b698fac2c8 (patch) | |
tree | b95c52e1ae02f015a95f78ada0679a3fa6cdb08f /chrome/browser/ui | |
parent | 28e466cf8282a13c22ff64eb762b7adef8f68f11 (diff) | |
download | chromium_src-3e6e82da372f9508e8819f84b03716b698fac2c8.zip chromium_src-3e6e82da372f9508e8819f84b03716b698fac2c8.tar.gz chromium_src-3e6e82da372f9508e8819f84b03716b698fac2c8.tar.bz2 |
Clean up Autofill CreditCard logic
* When determining possible field types (for upload to the server), match against stored data, not just against the Luhn checksum
* When displaying the obfuscated credit card number, display exactly the right number of obfuscating '*'s.
* When importing credit card data, only save the card if the detected card type is one we recognize.
* Prune some unhelpful member variables
* Prune some unhelpful methods from the header
BUG=77822
TEST=unit_tests --gtest_filter=CreditCardTest.*
Review URL: http://codereview.chromium.org/6690038
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80580 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui')
-rw-r--r-- | chrome/browser/ui/webui/options/autofill_options_handler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/webui/options/autofill_options_handler.cc b/chrome/browser/ui/webui/options/autofill_options_handler.cc index 6d5287d..e991a221 100644 --- a/chrome/browser/ui/webui/options/autofill_options_handler.cc +++ b/chrome/browser/ui/webui/options/autofill_options_handler.cc @@ -210,7 +210,7 @@ void AutofillOptionsHandler::LoadAutofillData() { i != personal_data_->credit_cards().end(); ++i) { ListValue* entry = new ListValue(); entry->Append(new StringValue((*i)->guid())); - entry->Append(new StringValue((*i)->PreviewSummary())); + entry->Append(new StringValue((*i)->Label())); int res = CreditCardTypeToResourceID((*i)->type()); entry->Append( new StringValue(web_ui_util::GetImageDataUrlFromResource(res))); |