| Index: chrome/browser/autofill/autocomplete_history_manager.cc
|
| diff --git a/chrome/browser/autofill/autocomplete_history_manager.cc b/chrome/browser/autofill/autocomplete_history_manager.cc
|
| index 44a46442cfb901b6800dae2efd289f3cab5a70ad..042e83783667e2055044fb29b0fe0ac13d914264 100644
|
| --- a/chrome/browser/autofill/autocomplete_history_manager.cc
|
| +++ b/chrome/browser/autofill/autocomplete_history_manager.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/string16.h"
|
| #include "base/string_number_conversions.h"
|
| #include "base/utf_string_conversions.h"
|
| +#include "chrome/browser/api/prefs/pref_service_base.h"
|
| #include "chrome/browser/autofill/autofill_external_delegate.h"
|
| #include "chrome/browser/autofill/credit_card.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| @@ -117,7 +118,8 @@ AutocompleteHistoryManager::AutocompleteHistoryManager(
|
| // May be NULL in unit tests.
|
| web_data_service_ = WebDataServiceFactory::GetForProfile(
|
| profile_, Profile::EXPLICIT_ACCESS);
|
| - autofill_enabled_.Init(prefs::kAutofillEnabled, profile_->GetPrefs(), NULL);
|
| + autofill_enabled_.Init(
|
| + prefs::kAutofillEnabled, PrefServiceBase::ForProfile(profile_), NULL);
|
| }
|
|
|
| AutocompleteHistoryManager::~AutocompleteHistoryManager() {
|
| @@ -244,7 +246,7 @@ AutocompleteHistoryManager::AutocompleteHistoryManager(
|
| query_id_(0),
|
| external_delegate_(NULL) {
|
| autofill_enabled_.Init(
|
| - prefs::kAutofillEnabled, profile_->GetPrefs(), NULL);
|
| + prefs::kAutofillEnabled, PrefServiceBase::ForProfile(profile_), NULL);
|
| }
|
|
|
| void AutocompleteHistoryManager::CancelPendingQuery() {
|
|
|