OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/autofill/core/browser/autofill_wallet_data_type_controller.
h" | 5 #include "components/autofill/core/browser/autofill_wallet_data_type_controller.
h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/prefs/pref_service.h" |
8 #include "components/autofill/core/browser/personal_data_manager.h" | 9 #include "components/autofill/core/browser/personal_data_manager.h" |
9 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 10 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
10 #include "components/autofill/core/common/autofill_pref_names.h" | 11 #include "components/autofill/core/common/autofill_pref_names.h" |
11 #include "components/prefs/pref_service.h" | |
12 #include "components/sync_driver/sync_client.h" | 12 #include "components/sync_driver/sync_client.h" |
13 #include "components/sync_driver/sync_service.h" | 13 #include "components/sync_driver/sync_service.h" |
14 #include "sync/api/sync_error.h" | 14 #include "sync/api/sync_error.h" |
15 #include "sync/api/syncable_service.h" | 15 #include "sync/api/syncable_service.h" |
16 | 16 |
17 namespace browser_sync { | 17 namespace browser_sync { |
18 | 18 |
19 AutofillWalletDataTypeController::AutofillWalletDataTypeController( | 19 AutofillWalletDataTypeController::AutofillWalletDataTypeController( |
20 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, | 20 const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread, |
21 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, | 21 const scoped_refptr<base::SingleThreadTaskRunner>& db_thread, |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 // Require both the sync experiment and the user-visible pref to be | 143 // Require both the sync experiment and the user-visible pref to be |
144 // enabled to sync Wallet data/metadata. | 144 // enabled to sync Wallet data/metadata. |
145 PrefService* ps = sync_client_->GetPrefService(); | 145 PrefService* ps = sync_client_->GetPrefService(); |
146 return ps->GetBoolean( | 146 return ps->GetBoolean( |
147 autofill::prefs::kAutofillWalletSyncExperimentEnabled) && | 147 autofill::prefs::kAutofillWalletSyncExperimentEnabled) && |
148 ps->GetBoolean(autofill::prefs::kAutofillWalletImportEnabled); | 148 ps->GetBoolean(autofill::prefs::kAutofillWalletImportEnabled); |
149 } | 149 } |
150 | 150 |
151 } // namespace browser_sync | 151 } // namespace browser_sync |
OLD | NEW |