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

Unified Diff: content/public/test/test_browser_thread_bundle.cc

Issue 2557083002: Run ScopedTaskScheduler tasks synchronously. (Closed)
Patch Set: CR gab #37 Created 4 years 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: 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()));
« base/test/scoped_task_scheduler.h ('K') | « content/public/test/test_browser_thread_bundle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698