| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "components/autofill/core/browser/options_util.h" | |
| 6 | |
| 7 #include "components/autofill/core/browser/personal_data_manager.h" | |
| 8 #include "components/autofill/core/common/autofill_pref_names.h" | |
| 9 #include "components/sync_driver/sync_service.h" | |
| 10 | |
| 11 namespace autofill { | |
| 12 | |
| 13 bool WalletIntegrationAvailable( | |
| 14 sync_driver::SyncService* sync_service, | |
| 15 const PersonalDataManager& personal_data_manager) { | |
| 16 if (!(sync_service && sync_service->CanSyncStart() && | |
| 17 sync_service->GetPreferredDataTypes().Has(syncer::AUTOFILL_PROFILE))) { | |
| 18 return false; | |
| 19 } | |
| 20 | |
| 21 return personal_data_manager.IsExperimentalWalletIntegrationEnabled(); | |
| 22 } | |
| 23 | |
| 24 } // namespace autofill | |
| OLD | NEW |