summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/credit_card.h
diff options
context:
space:
mode:
authorisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-22 04:24:22 +0000
committerisherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-22 04:24:22 +0000
commitcdd0d448a7a82e7824c3ef84c9705cadc4d0a8bc (patch)
tree49e7572da37d58d5838f3eda7f00392d023da73d /chrome/browser/autofill/credit_card.h
parentf7e61316fae89776c8406073b17167fa3e991114 (diff)
downloadchromium_src-cdd0d448a7a82e7824c3ef84c9705cadc4d0a8bc.zip
chromium_src-cdd0d448a7a82e7824c3ef84c9705cadc4d0a8bc.tar.gz
chromium_src-cdd0d448a7a82e7824c3ef84c9705cadc4d0a8bc.tar.bz2
Don't learn credit cards for Autofill if they are missing any data.
BUG=89990 TEST=unit_tests --gtest_filter=PersonalDataManagerTest.AggregateCreditCardWithMissingInfoInNew Review URL: http://codereview.chromium.org/7465019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93548 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autofill/credit_card.h')
-rw-r--r--chrome/browser/autofill/credit_card.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/autofill/credit_card.h b/chrome/browser/autofill/credit_card.h
index 57f0adc..124ae79 100644
--- a/chrome/browser/autofill/credit_card.h
+++ b/chrome/browser/autofill/credit_card.h
@@ -76,6 +76,9 @@ class CreditCard : public FormGroup {
// Returns true if there are no values (field types) set.
bool IsEmpty() const;
+ // Returns true if all field types have valid values set.
+ bool IsComplete() const;
+
// Returns the credit card number.
const string16& number() const { return number_; }