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

Unified Diff: components/history/core/browser/history_service.cc

Issue 1368293012: HistoryQuickProviderTest.DeleteMatch thread safety fix. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: components/history/core/browser/history_service.cc
diff --git a/components/history/core/browser/history_service.cc b/components/history/core/browser/history_service.cc
index c0e953608e06c0821968275cbeb161878070917c..01f75d288be525e47cec6934aaf71d6ff9813031 100644
--- a/components/history/core/browser/history_service.cc
+++ b/components/history/core/browser/history_service.cc
@@ -345,8 +345,12 @@ base::CancelableTaskTracker::TaskId HistoryService::ScheduleDBTask(
}
void HistoryService::FlushForTest(const base::Closure& flushed) {
- after_startup_task_runner_->PostTaskAndReply(
- FROM_HERE, base::Bind(&base::DoNothing), flushed);
+ PostTaskAndReplyForTest(base::Bind(&base::DoNothing), flushed);
+}
+
+bool HistoryService::PostTaskAndReplyForTest(const base::Closure& task,
+ const base::Closure& reply) {
+ return after_startup_task_runner_->PostTaskAndReply(FROM_HERE, task, reply);
}
void HistoryService::SetOnBackendDestroyTask(const base::Closure& task) {

Powered by Google App Engine
This is Rietveld 408576698