summaryrefslogtreecommitdiffstats
path: root/components/webdata_services
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-02-12 10:44:39 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-12 18:45:23 +0000
commit43eadb637fa97fda1785cf6ad0d4a471c025c06d (patch)
tree842fbc7024de585bb49882965d4d9abdd8d34b05 /components/webdata_services
parent25eff098c77343e5b95f25c4465a0eb09942ab6e (diff)
downloadchromium_src-43eadb637fa97fda1785cf6ad0d4a471c025c06d.zip
chromium_src-43eadb637fa97fda1785cf6ad0d4a471c025c06d.tar.gz
chromium_src-43eadb637fa97fda1785cf6ad0d4a471c025c06d.tar.bz2
Hook up wallet card and address sync
This syncs the masked credit card and addresses from wallet into Chrome autofill. R=estade, zea TBR=isherman (histograms) Review URL: https://codereview.chromium.org/902673002 Cr-Commit-Position: refs/heads/master@{#316008}
Diffstat (limited to 'components/webdata_services')
-rw-r--r--components/webdata_services/web_data_service_wrapper.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/webdata_services/web_data_service_wrapper.cc b/components/webdata_services/web_data_service_wrapper.cc
index 6253a17..c1c5deb 100644
--- a/components/webdata_services/web_data_service_wrapper.cc
+++ b/components/webdata_services/web_data_service_wrapper.cc
@@ -11,6 +11,7 @@
#include "components/autofill/core/browser/webdata/autocomplete_syncable_service.h"
#include "components/autofill/core/browser/webdata/autofill_profile_syncable_service.h"
#include "components/autofill/core/browser/webdata/autofill_table.h"
+#include "components/autofill/core/browser/webdata/autofill_wallet_syncable_service.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
#include "components/password_manager/core/browser/webdata/logins_table.h"
#include "components/search_engines/keyword_table.h"
@@ -41,10 +42,16 @@ void InitSyncableServicesOnDBThread(
autofill_web_data.get(), autofill_backend);
autofill::AutocompleteSyncableService::FromWebDataService(
autofill_web_data.get())->InjectStartSyncFlare(sync_flare);
+
autofill::AutofillProfileSyncableService::CreateForWebDataServiceAndBackend(
autofill_web_data.get(), autofill_backend, app_locale);
+ autofill::AutofillWalletSyncableService::CreateForWebDataServiceAndBackend(
+ autofill_web_data.get(), autofill_backend, app_locale);
+
autofill::AutofillProfileSyncableService::FromWebDataService(
autofill_web_data.get())->InjectStartSyncFlare(sync_flare);
+ autofill::AutofillWalletSyncableService::FromWebDataService(
+ autofill_web_data.get())->InjectStartSyncFlare(sync_flare);
}
} // namespace