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_), |