| 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 dd6b19aa490f1898e9413cc7fa355269966a4ef5..8b3b641239ca280acfa2ab3a430794e3e5a7a41b 100644
|
| --- a/components/history/core/browser/history_service.h
|
| +++ b/components/history/core/browser/history_service.h
|
| @@ -481,6 +481,10 @@ class HistoryService : public syncer::SyncableService, public KeyedService {
|
|
|
| // Testing -------------------------------------------------------------------
|
|
|
| + // Similar to Init() but uses the provided |task_runner| for the backend.
|
| + bool InitForTest(const HistoryDatabaseParams& history_database_params,
|
| + scoped_refptr<base::SequencedTaskRunner> task_runner);
|
| +
|
| // Runs |flushed| after bouncing off the history thread.
|
| void FlushForTest(const base::Closure& flushed);
|
|
|
| @@ -573,6 +577,11 @@ class HistoryService : public syncer::SyncableService, public KeyedService {
|
| // that is only set by unittests which causes the backend to not init its DB.
|
| bool Init(bool no_db, const HistoryDatabaseParams& history_database_params);
|
|
|
| + // Similar to Init() but uses the provided |task_runner| for the backend.
|
| + bool InitWithTaskRunner(bool no_db,
|
| + const HistoryDatabaseParams& history_database_params,
|
| + scoped_refptr<base::SequencedTaskRunner> task_runner);
|
| +
|
| // Called by the HistoryURLProvider class to schedule an autocomplete, it
|
| // will be called back on the internal history thread with the history
|
| // database so it can query. See history_url_provider.h for a diagram.
|
|
|