Index: chrome/browser/autocomplete/history_contents_provider.cc |
diff --git a/chrome/browser/autocomplete/history_contents_provider.cc b/chrome/browser/autocomplete/history_contents_provider.cc |
index 1c15921ae00a21da41dab3215af243734ee1543e..cc3bcd93b51332fabd7d3f204ee3442c0851e461 100644 |
--- a/chrome/browser/autocomplete/history_contents_provider.cc |
+++ b/chrome/browser/autocomplete/history_contents_provider.cc |
@@ -72,7 +72,7 @@ void HistoryContentsProvider::Start(const AutocompleteInput& input, |
!profile_ || |
// The history service or bookmark bar model must exist. |
!(HistoryServiceFactory::GetForProfile(profile_, |
- Profile::EXPLICIT_ACCESS) || |
+ Profile::EXPLICIT_ACCESS).get() || |
BookmarkModelFactory::GetForProfile(profile_))) { |
Stop(false); |
return; |
@@ -136,7 +136,7 @@ void HistoryContentsProvider::Start(const AutocompleteInput& input, |
if (input.matches_requested() == AutocompleteInput::ALL_MATCHES) { |
HistoryService* history = |
HistoryServiceFactory::GetForProfile(profile_, |
- Profile::EXPLICIT_ACCESS); |
+ Profile::EXPLICIT_ACCESS).get(); |
if (history) { |
done_ = false; |