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

Unified Diff: chrome/browser/history/in_memory_url_index.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/history/in_memory_url_index.cc
diff --git a/chrome/browser/history/in_memory_url_index.cc b/chrome/browser/history/in_memory_url_index.cc
index a3cb4f882f116ae202e0f96860829c35f9ed8219..18b33b2393048fe9636a63f1ce21c78484f7aee6 100644
--- a/chrome/browser/history/in_memory_url_index.cc
+++ b/chrome/browser/history/in_memory_url_index.cc
@@ -258,7 +258,7 @@ void InMemoryURLIndex::OnCacheLoadDone(
content::BrowserThread::PostBlockingPoolTask(
FROM_HERE, base::Bind(DeleteCacheFile, path));
HistoryService* service =
- HistoryServiceFactory::GetForProfileWithoutCreating(profile_);
+ HistoryServiceFactory::GetForProfileWithoutCreating(profile_).get();
if (service && service->backend_loaded()) {
ScheduleRebuildFromHistory();
} else {
@@ -273,7 +273,7 @@ void InMemoryURLIndex::OnCacheLoadDone(
void InMemoryURLIndex::ScheduleRebuildFromHistory() {
HistoryService* service =
HistoryServiceFactory::GetForProfile(profile_,
- Profile::EXPLICIT_ACCESS);
+ Profile::EXPLICIT_ACCESS).get();
service->ScheduleDBTask(
new InMemoryURLIndex::RebuildPrivateDataFromHistoryDBTask(
this, languages_, scheme_whitelist_),
« no previous file with comments | « chrome/browser/history/history_tab_helper.cc ('k') | chrome/browser/history/in_memory_url_index_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698