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

Unified Diff: components/autofill/core/browser/credit_card.h

Issue 770333006: Autofill - change presentation of credit card suggestions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve merge conflict Created 6 years 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
Index: components/autofill/core/browser/credit_card.h
diff --git a/components/autofill/core/browser/credit_card.h b/components/autofill/core/browser/credit_card.h
index 63a9ba59fed7ed02e7d796ec4eb421c5bc0ff407..a9dd937e8e6e0390d9c85fee07cc9530b7ba7241 100644
--- a/components/autofill/core/browser/credit_card.h
+++ b/components/autofill/core/browser/credit_card.h
@@ -80,14 +80,14 @@ class CreditCard : public AutofillDataModel {
const base::string16& value,
const std::string& app_locale) override;
- // Credit card preview summary, for example: ******1234, Exp: 01/2020
+ // Credit card preview summary, for example: Visa - 1234, Exp: 01/2020
+ // Used for settings and the requestAutocomplete dialog, but not
+ // the autofill dropdown.
const base::string16 Label() const;
// Special method to set value for HTML5 month input type.
void SetInfoForMonthInputType(const base::string16& value);
- // The number altered for display, for example: ******1234
- base::string16 ObfuscatedNumber() const;
// The last four digits of the credit card number (or possibly less if there
// aren't enough characters).
base::string16 LastFourDigits() const;
@@ -148,6 +148,9 @@ class CreditCard : public AutofillDataModel {
// FormGroup:
void GetSupportedTypes(ServerFieldTypeSet* supported_types) const override;
+ // The type of the card to fill in to the page, e.g. 'Mastercard'.
+ base::string16 TypeForFill() const;
+
// The month and year are zero if not present.
int Expiration4DigitYear() const { return expiration_year_; }
int Expiration2DigitYear() const { return expiration_year_ % 100; }
« no previous file with comments | « components/autofill/core/browser/autofill_manager_unittest.cc ('k') | components/autofill/core/browser/credit_card.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698