Chromium Code Reviews| Index: content/public/test/test_browser_thread_bundle.cc |
| diff --git a/content/public/test/test_browser_thread_bundle.cc b/content/public/test/test_browser_thread_bundle.cc |
| index 537e24534c3bda496b4648d0c31e12738d2f2974..e8c8765e7665e5c65cb8625ecb7a6e5543ffb06d 100644 |
| --- a/content/public/test/test_browser_thread_bundle.cc |
| +++ b/content/public/test/test_browser_thread_bundle.cc |
| @@ -6,6 +6,7 @@ |
| #include "base/message_loop/message_loop.h" |
| #include "base/run_loop.h" |
| +#include "base/test/scoped_task_scheduler.h" |
| #include "content/browser/browser_thread_impl.h" |
| #include "content/public/test/test_browser_thread.h" |
| @@ -64,6 +65,9 @@ void TestBrowserThreadBundle::Init() { |
| message_loop_.reset(new base::MessageLoopForUI()); |
| } |
| + task_scheduler_.reset( |
|
sky
2016/12/13 23:24:04
Use MakeUnique if possible (see thread on chromium
gab
2016/12/14 14:43:17
It used to but I pushed back on it earlier because
|
| + new base::test::ScopedTaskScheduler(message_loop_.get())); |
| + |
| ui_thread_.reset( |
| new TestBrowserThread(BrowserThread::UI, message_loop_.get())); |