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

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

Issue 2711543002: Experiment to add bank name in autofill ui. (Closed)
Patch Set: Experiment to add bank name in autofill ui. Created 3 years, 6 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
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 4dc8bb9bc934691ff33ef0e11f73e970a18a17a9..ef83a56d55b55bb7951014aa24a46d55d73c837d 100644
--- a/components/autofill/core/browser/credit_card.h
+++ b/components/autofill/core/browser/credit_card.h
@@ -101,6 +101,9 @@ class CreditCard : public AutofillDataModel {
const std::string& network() const { return network_; }
+ const std::string& bank_name() const { return bank_name_; }
+ void set_bank_name(const std::string& bank_name) { bank_name_ = bank_name; }
+
int expiration_month() const { return expiration_month_; }
int expiration_year() const { return expiration_year_; }
@@ -209,6 +212,8 @@ class CreditCard : public AutofillDataModel {
base::string16 NetworkForDisplay() const;
// A label for this card formatted as 'IssuerNetwork - 2345'.
base::string16 NetworkAndLastFourDigits() const;
+ // A label for this card formatted as 'BankName - 2345'.
+ base::string16 BankNameAndLastFourDigits() const;
// Localized expiration for this card formatted as 'Exp: 06/17'.
base::string16 AbbreviatedExpirationDateForDisplay() const;
// Returns the date when the card was last used in autofill.
@@ -249,6 +254,9 @@ class CreditCard : public AutofillDataModel {
// below.
std::string network_;
+ // The issuer bank name of the card.
+ std::string bank_name_;
+
// These members are zero if not present.
int expiration_month_;
int expiration_year_;
« no previous file with comments | « components/autofill/core/browser/autofill_metrics_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