Index: chrome/browser/history/android/android_history_provider_service.cc |
diff --git a/chrome/browser/history/android/android_history_provider_service.cc b/chrome/browser/history/android/android_history_provider_service.cc |
index 4bd1f2a8868f60cd683f358e02294fd43ada9b3e..149fa5b3540ab89678209b8a657dec67e0838a4d 100644 |
--- a/chrome/browser/history/android/android_history_provider_service.cc |
+++ b/chrome/browser/history/android/android_history_provider_service.cc |
@@ -181,8 +181,9 @@ void AndroidHistoryProviderService::CloseStatement( |
HistoryService* hs = HistoryServiceFactory::GetForProfile( |
profile_, ServiceAccessType::EXPLICIT_ACCESS); |
if (hs) { |
- hs->ScheduleAndForget(HistoryService::PRIORITY_NORMAL, |
- &HistoryBackend::CloseStatement, statement); |
+ hs->ScheduleTask(HistoryService::PRIORITY_NORMAL, |
+ base::Bind(&HistoryBackend::CloseStatement, |
+ hs->history_backend_.get(), statement)); |
} else { |
delete statement; |
} |