diff options
Diffstat (limited to 'chrome/browser/autocomplete/history_provider.cc')
| -rw-r--r-- | chrome/browser/autocomplete/history_provider.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/history_provider.cc b/chrome/browser/autocomplete/history_provider.cc index eab7c65..fcbc713 100644 --- a/chrome/browser/autocomplete/history_provider.cc +++ b/chrome/browser/autocomplete/history_provider.cc @@ -11,6 +11,7 @@ #include "chrome/browser/autocomplete/autocomplete.h" #include "chrome/browser/autocomplete/autocomplete_match.h" #include "chrome/browser/history/history.h" +#include "chrome/browser/history/history_service_factory.h" #include "chrome/browser/net/url_fixer_upper.h" #include "chrome/browser/profiles/profile.h" #include "chrome/common/url_constants.h" @@ -31,7 +32,7 @@ void HistoryProvider::DeleteMatch(const AutocompleteMatch& match) { DCHECK(match.deletable); HistoryService* const history_service = - profile_->GetHistoryService(Profile::EXPLICIT_ACCESS); + HistoryServiceFactory::GetForProfile(profile_, Profile::EXPLICIT_ACCESS); // Delete the match from the history DB. DCHECK(history_service); |
