Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / autofill / options_util.cc
blobcceccee7191fe8e70b63246f5a6367ef80788a73
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.
5 #include "chrome/browser/autofill/options_util.h"
7 #include "chrome/browser/autofill/personal_data_manager_factory.h"
8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/sync/profile_sync_service.h"
10 #include "chrome/browser/sync/profile_sync_service_factory.h"
11 #include "components/autofill/core/browser/options_util.h"
13 namespace autofill {
15 bool WalletIntegrationAvailableForProfile(Profile* profile) {
16 return WalletIntegrationAvailable(
17 ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile),
18 *profile->GetPrefs(),
19 *PersonalDataManagerFactory::GetForProfile(profile));
22 } // namespace autofill