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

Unified Diff: chrome/browser/autofill/credit_card.h

Issue 3061001: AutoFill Empty profiles should not be saved from AutoFillDialog Add and Edit sheets on Mac. (Closed)
Patch Set: Move to member function and functor instead of static method. Created 10 years, 5 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 | « chrome/browser/autofill/autofill_profile.cc ('k') | chrome/browser/autofill/credit_card.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/credit_card.h
diff --git a/chrome/browser/autofill/credit_card.h b/chrome/browser/autofill/credit_card.h
index faf4326b67015348c597ee263f0ebeafa5b13407..85d104f7136c82379ab371a42f90d067602caee3 100644
--- a/chrome/browser/autofill/credit_card.h
+++ b/chrome/browser/autofill/credit_card.h
@@ -59,6 +59,9 @@ class CreditCard : public FormGroup {
// validate the number.
static bool IsCreditCardNumber(const string16& text);
+ // Returns true if there are no values (field types) set.
+ bool IsEmpty() const;
+
private:
// The month and year are zero if not present.
int Expiration4DigitYear() const { return expiration_year_; }
« no previous file with comments | « chrome/browser/autofill/autofill_profile.cc ('k') | chrome/browser/autofill/credit_card.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698