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

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

Issue 2085133003: Add billing address to credit cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 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 56f6ce62c9e02c65ec7eabd041b3cee75071dcb7..f516e9807cc1d0706a5a5e7ce9117a64c8006476 100644
--- a/components/autofill/core/browser/credit_card.h
+++ b/components/autofill/core/browser/credit_card.h
@@ -198,6 +198,11 @@ class CreditCard : public AutofillDataModel {
// Whether the card expiration date should be updated.
bool ShouldUpdateExpiration(const base::Time& current_time) const;
+ const std::string& billing_address_id() const { return billing_address_id_; }
+ void set_billing_address_id(const std::string& id) {
+ billing_address_id_ = id;
+ }
+
private:
// FormGroup:
void GetSupportedTypes(ServerFieldTypeSet* supported_types) const override;
@@ -244,6 +249,9 @@ class CreditCard : public AutofillDataModel {
// The status of the card, as reported by the server. Not valid for local
// cards.
ServerStatus server_status_;
+
+ // The identifier of the billing address for this card.
+ std::string billing_address_id_;
};
// So we can compare CreditCards with EXPECT_EQ().

Powered by Google App Engine
This is Rietveld 408576698