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

Unified Diff: mojo/edk/embedder/embedder.cc

Issue 1525883002: EDK: Add PlatformHandleWatcher to IPCSupport class. (Closed) Base URL: https://github.com/domokit/mojo.git@embedder_watcher
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 | « no previous file | mojo/edk/system/ipc_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/embedder.cc
diff --git a/mojo/edk/embedder/embedder.cc b/mojo/edk/embedder/embedder.cc
index 51e317a1f572693cd357ae70bcf3657fc1f58306..5707d45b21a9bf3b0fed2ad711fa005b8a729507 100644
--- a/mojo/edk/embedder/embedder.cc
+++ b/mojo/edk/embedder/embedder.cc
@@ -135,11 +135,10 @@ void InitIPCSupport(ProcessType process_type,
// And not |InitIPCSupport()| (without |ShutdownIPCSupport()|).
DCHECK(!internal::g_ipc_support);
- // TODO(vtl): Make IPCSUpport also take |io_watcher|.
internal::g_ipc_support = new system::IPCSupport(
internal::g_platform_support, process_type,
std::move(delegate_thread_task_runner), process_delegate,
- std::move(io_task_runner), platform_handle.Pass());
+ std::move(io_task_runner), io_watcher, platform_handle.Pass());
}
void ShutdownIPCSupportOnIOThread() {
@@ -153,7 +152,7 @@ void ShutdownIPCSupportOnIOThread() {
void ShutdownIPCSupport() {
DCHECK(internal::g_ipc_support);
- internal::g_ipc_support->io_thread_task_runner()->PostTask([]() {
+ internal::g_ipc_support->io_task_runner()->PostTask([]() {
// Save these before they get nuked by |ShutdownChannelOnIOThread()|.
RefPtr<TaskRunner> delegate_thread_task_runner(
internal::g_ipc_support->delegate_thread_task_runner());
« no previous file with comments | « no previous file | mojo/edk/system/ipc_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698