Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(964)

Unified Diff: chrome/browser/autocomplete/history_contents_provider.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_browsertest.cc ('k') | chrome/browser/autocomplete/history_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698