Chromium Code Reviews| Index: components/history/core/browser/history_service.h | 
| diff --git a/components/history/core/browser/history_service.h b/components/history/core/browser/history_service.h | 
| index 62267e1b138f8bc0a143cd12bd2ef32f4de211d7..c61e474ede918e20ac580c6f0f0052c7557c1287 100644 | 
| --- a/components/history/core/browser/history_service.h | 
| +++ b/components/history/core/browser/history_service.h | 
| @@ -503,6 +503,10 @@ class HistoryService : public syncer::SyncableService, public KeyedService { | 
| // Runs |flushed| after bouncing off the history thread. | 
| void FlushForTest(const base::Closure& flushed); | 
| + // Runs |task| on the history thread, and then |reply| on the sending thread. | 
| + bool PostTaskAndReplyForTest(const base::Closure& task, | 
| 
 
sky
2015/09/30 23:52:10
THis is effectively duplicating what HistoryDBTask
 
Scott Hess - ex-Googler
2015/10/01 18:08:39
Didn't know about that one.  Converted.
 
 | 
| + const base::Closure& reply); | 
| + | 
| // Designed for unit tests, this passes the given task on to the history | 
| // backend to be called once the history backend has terminated. This allows | 
| // callers to know when the history thread is complete and the database files |