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

Unified Diff: components/autofill/core/browser/webdata/autofill_webdata_service.cc

Issue 1042353003: Create syncable metadata table for Wallet credit cards and addresses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment about migration code Created 5 years, 8 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_webdata_service.cc
diff --git a/components/autofill/core/browser/webdata/autofill_webdata_service.cc b/components/autofill/core/browser/webdata/autofill_webdata_service.cc
index 82da1099a95bfc4b75161d29c04d7438ca13ba13..8f3be4d5e8f2a5a4d3a6830e94ea560f83ec85ea 100644
--- a/components/autofill/core/browser/webdata/autofill_webdata_service.cc
+++ b/components/autofill/core/browser/webdata/autofill_webdata_service.cc
@@ -183,12 +183,12 @@ WebDataServiceBase::Handle AutofillWebDataService::GetServerCreditCards(
}
void AutofillWebDataService::UnmaskServerCreditCard(
- const std::string& id,
+ const CreditCard& credit_card,
const base::string16& full_number) {
wdbs_->ScheduleDBTask(
FROM_HERE,
Bind(&AutofillWebDataBackendImpl::UnmaskServerCreditCard,
- autofill_backend_, id, full_number));
+ autofill_backend_, credit_card, full_number));
}
void AutofillWebDataService::MaskServerCreditCard(const std::string& id) {
@@ -205,14 +205,22 @@ void AutofillWebDataService::ClearAllServerData() {
autofill_backend_));
}
-void AutofillWebDataService::UpdateUnmaskedCardUsageStats(
+void AutofillWebDataService::UpdateServerCardUsageStats(
const CreditCard& credit_card) {
wdbs_->ScheduleDBTask(
FROM_HERE,
- Bind(&AutofillWebDataBackendImpl::UpdateUnmaskedCardUsageStats,
+ Bind(&AutofillWebDataBackendImpl::UpdateServerCardUsageStats,
autofill_backend_, credit_card));
}
+void AutofillWebDataService::UpdateServerAddressUsageStats(
+ const AutofillProfile& profile) {
+ wdbs_->ScheduleDBTask(
+ FROM_HERE,
+ Bind(&AutofillWebDataBackendImpl::UpdateServerAddressUsageStats,
+ autofill_backend_, profile));
+}
+
void AutofillWebDataService::RemoveAutofillDataModifiedBetween(
const Time& delete_begin,
const Time& delete_end) {
« no previous file with comments | « components/autofill/core/browser/webdata/autofill_webdata_service.h ('k') | components/test/data/web_database/version_64.sql » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698