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

Unified Diff: chrome/browser/history/android/android_history_provider_service.cc

Issue 865443005: Inline ScheduleAndForget implementation in HistoryService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed DCHECK back to CHECK Created 5 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/history/history_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | chrome/browser/history/history_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698