| Index: chrome/browser/autofill/personal_data_manager.cc
|
| diff --git a/chrome/browser/autofill/personal_data_manager.cc b/chrome/browser/autofill/personal_data_manager.cc
|
| index 76b5961a302701c2a89ecd48a2592dd2a4c14b26..a7569823fcfb4f442058496088971e1e3a7cc990 100644
|
| --- a/chrome/browser/autofill/personal_data_manager.cc
|
| +++ b/chrome/browser/autofill/personal_data_manager.cc
|
| @@ -26,6 +26,7 @@
|
| #include "chrome/browser/autofill/validation.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/pref_names.h"
|
| +#include "components/user_prefs/user_prefs.h"
|
| #include "content/public/browser/browser_context.h"
|
| #include "content/public/browser/notification_source.h"
|
|
|
| @@ -495,8 +496,9 @@ bool PersonalDataManager::IsDataLoaded() const {
|
| }
|
|
|
| const std::vector<AutofillProfile*>& PersonalDataManager::GetProfiles() {
|
| - if (!PrefServiceFromBrowserContext(browser_context_)->GetBoolean(
|
| - prefs::kAutofillAuxiliaryProfilesEnabled)) {
|
| + if (!components::UserPrefs::GetInstance()->Lookup(
|
| + browser_context_)->GetBoolean(
|
| + prefs::kAutofillAuxiliaryProfilesEnabled)) {
|
| return web_profiles();
|
| }
|
|
|
| @@ -670,8 +672,8 @@ void PersonalDataManager::Init(BrowserContext* browser_context) {
|
| }
|
|
|
| bool PersonalDataManager::IsAutofillEnabled() const {
|
| - return PrefServiceFromBrowserContext(browser_context_)->GetBoolean(
|
| - prefs::kAutofillEnabled);
|
| + return components::UserPrefs::GetInstance()->Lookup(
|
| + browser_context_)->GetBoolean(prefs::kAutofillEnabled);
|
| }
|
|
|
| // static
|
|
|