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

Unified Diff: shell/task_runners.cc

Issue 1523883002: EDK: Add a PlatformHandleWatcher argument to embedder::InitIPCSupport(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « shell/task_runners.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/task_runners.cc
diff --git a/shell/task_runners.cc b/shell/task_runners.cc
index 7178fe2a300351ed428702fa194df3f5cdeb0c87..1440b8d94fe84f6b1a0bd3cfca63d4d4cf63f78e 100644
--- a/shell/task_runners.cc
+++ b/shell/task_runners.cc
@@ -5,9 +5,12 @@
#include "shell/task_runners.h"
#include "base/threading/sequenced_worker_pool.h"
+#include "mojo/edk/base_edk/platform_handle_watcher_impl.h"
#include "mojo/edk/base_edk/platform_task_runner_impl.h"
+#include "mojo/edk/util/make_unique.h"
using mojo::util::MakeRefCounted;
+using mojo::util::MakeUnique;
namespace shell {
@@ -32,6 +35,8 @@ TaskRunners::TaskRunners(
io_thread_(CreateIOThread("io_thread")),
io_runner_(MakeRefCounted<base_edk::PlatformTaskRunnerImpl>(
io_thread_->task_runner())),
+ io_watcher_(MakeUnique<base_edk::PlatformHandleWatcherImpl>(
+ static_cast<base::MessageLoopForIO*>(io_thread_->message_loop()))),
blocking_pool_(new base::SequencedWorkerPool(kMaxBlockingPoolThreads,
"blocking_pool")) {}
« no previous file with comments | « shell/task_runners.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698