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

Unified Diff: components/autofill/core/browser/webdata/autofill_table.h

Issue 2109643003: Add billing address to masked server credit cards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add version_66.sql to the build file. 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/webdata/autofill_table.h
diff --git a/components/autofill/core/browser/webdata/autofill_table.h b/components/autofill/core/browser/webdata/autofill_table.h
index 919ec0393fb4c8a5a23c33eb16f20c3174a5a564..16920734d1df1639819713c32764cff5702966fb 100644
--- a/components/autofill/core/browser/webdata/autofill_table.h
+++ b/components/autofill/core/browser/webdata/autofill_table.h
@@ -161,6 +161,10 @@ struct FormFieldData;
// with locally stored cards and generating descriptions.
// exp_month Expiration month: 1-12
// exp_year Four-digit year: 2017
+// billing_address_id The guid string that identifies the local profile which
+// is the billing address for this card. Can be null in the
+// database, but always returned as an empty string in
+// CreditCard. Added in version 67.
//
// unmasked_credit_cards
// When a masked credit credit card is unmasked and the
@@ -356,6 +360,8 @@ class AutofillTable : public WebDatabaseTable {
bool UpdateServerCardUsageStats(const CreditCard& credit_card);
bool UpdateServerAddressUsageStats(const AutofillProfile& profile);
+ bool UpdateServerCardBillingAddress(const CreditCard& credit_card);
+
// Deletes all data from the server card and profile tables. Returns true if
// any data was deleted, false if not (so false means "commit not needed"
// rather than "error").
@@ -413,6 +419,7 @@ class AutofillTable : public WebDatabaseTable {
bool MigrateToVersion64AddUnmaskDate();
bool MigrateToVersion65AddServerMetadataTables();
bool MigrateToVersion66AddCardBillingAddress();
+ bool MigrateToVersion67AddMaskedCardBillingAddress();
// Max data length saved in the table, AKA the maximum length allowed for
// form data.
« no previous file with comments | « components/autofill/core/browser/personal_data_manager.cc ('k') | components/autofill/core/browser/webdata/autofill_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698