OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/webdata_services/web_data_service_wrapper.h" | 5 #include "components/webdata_services/web_data_service_wrapper.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
11 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service
.h" | 11 #include "components/autofill/core/browser/webdata/autocomplete_syncable_service
.h" |
12 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" | 12 #include "components/autofill/core/browser/webdata/autofill_profile_syncable_ser
vice.h" |
13 #include "components/autofill/core/browser/webdata/autofill_table.h" | 13 #include "components/autofill/core/browser/webdata/autofill_table.h" |
| 14 #include "components/autofill/core/browser/webdata/autofill_wallet_metadata_sync
able_service.h" |
14 #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_serv
ice.h" | 15 #include "components/autofill/core/browser/webdata/autofill_wallet_syncable_serv
ice.h" |
15 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 16 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
16 #include "components/password_manager/core/browser/webdata/logins_table.h" | 17 #include "components/password_manager/core/browser/webdata/logins_table.h" |
17 #include "components/search_engines/keyword_table.h" | 18 #include "components/search_engines/keyword_table.h" |
18 #include "components/search_engines/keyword_web_data_service.h" | 19 #include "components/search_engines/keyword_web_data_service.h" |
19 #include "components/signin/core/browser/webdata/token_service_table.h" | 20 #include "components/signin/core/browser/webdata/token_service_table.h" |
20 #include "components/signin/core/browser/webdata/token_web_data.h" | 21 #include "components/signin/core/browser/webdata/token_web_data.h" |
21 #include "components/webdata/common/web_database_service.h" | 22 #include "components/webdata/common/web_database_service.h" |
22 #include "components/webdata/common/webdata_constants.h" | 23 #include "components/webdata/common/webdata_constants.h" |
23 | 24 |
(...skipping 16 matching lines...) Expand all Loading... |
40 // all the database data should migrate to this API over time. | 41 // all the database data should migrate to this API over time. |
41 autofill::AutocompleteSyncableService::CreateForWebDataServiceAndBackend( | 42 autofill::AutocompleteSyncableService::CreateForWebDataServiceAndBackend( |
42 autofill_web_data.get(), autofill_backend); | 43 autofill_web_data.get(), autofill_backend); |
43 autofill::AutocompleteSyncableService::FromWebDataService( | 44 autofill::AutocompleteSyncableService::FromWebDataService( |
44 autofill_web_data.get())->InjectStartSyncFlare(sync_flare); | 45 autofill_web_data.get())->InjectStartSyncFlare(sync_flare); |
45 | 46 |
46 autofill::AutofillProfileSyncableService::CreateForWebDataServiceAndBackend( | 47 autofill::AutofillProfileSyncableService::CreateForWebDataServiceAndBackend( |
47 autofill_web_data.get(), autofill_backend, app_locale); | 48 autofill_web_data.get(), autofill_backend, app_locale); |
48 autofill::AutofillWalletSyncableService::CreateForWebDataServiceAndBackend( | 49 autofill::AutofillWalletSyncableService::CreateForWebDataServiceAndBackend( |
49 autofill_web_data.get(), autofill_backend, app_locale); | 50 autofill_web_data.get(), autofill_backend, app_locale); |
| 51 autofill::AutofillWalletMetadataSyncableService:: |
| 52 CreateForWebDataServiceAndBackend(autofill_web_data.get(), |
| 53 autofill_backend, app_locale); |
50 | 54 |
51 autofill::AutofillProfileSyncableService::FromWebDataService( | 55 autofill::AutofillProfileSyncableService::FromWebDataService( |
52 autofill_web_data.get())->InjectStartSyncFlare(sync_flare); | 56 autofill_web_data.get())->InjectStartSyncFlare(sync_flare); |
53 autofill::AutofillWalletSyncableService::FromWebDataService( | 57 autofill::AutofillWalletSyncableService::FromWebDataService( |
54 autofill_web_data.get())->InjectStartSyncFlare(sync_flare); | 58 autofill_web_data.get())->InjectStartSyncFlare(sync_flare); |
55 } | 59 } |
56 | 60 |
57 } // namespace | 61 } // namespace |
58 | 62 |
59 WebDataServiceWrapper::WebDataServiceWrapper() { | 63 WebDataServiceWrapper::WebDataServiceWrapper() { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 scoped_refptr<TokenWebData> WebDataServiceWrapper::GetTokenWebData() { | 141 scoped_refptr<TokenWebData> WebDataServiceWrapper::GetTokenWebData() { |
138 return token_web_data_.get(); | 142 return token_web_data_.get(); |
139 } | 143 } |
140 | 144 |
141 #if defined(OS_WIN) | 145 #if defined(OS_WIN) |
142 scoped_refptr<PasswordWebDataService> | 146 scoped_refptr<PasswordWebDataService> |
143 WebDataServiceWrapper::GetPasswordWebData() { | 147 WebDataServiceWrapper::GetPasswordWebData() { |
144 return password_web_data_.get(); | 148 return password_web_data_.get(); |
145 } | 149 } |
146 #endif | 150 #endif |
OLD | NEW |