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

Unified Diff: content/browser/browser_child_process_host_impl.cc

Issue 1712143002: [mojo-edk] Add support for transferring mach ports. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 9 months 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 | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_child_process_host_impl.cc
diff --git a/content/browser/browser_child_process_host_impl.cc b/content/browser/browser_child_process_host_impl.cc
index 666fdf39e18e714f3b6883c23b1110dbcf3d67b7..2628296bfe7758eec0ed40e1f0cd42d8e4d21174 100644
--- a/content/browser/browser_child_process_host_impl.cc
+++ b/content/browser/browser_child_process_host_impl.cc
@@ -141,6 +141,9 @@ BrowserChildProcessHostImpl::BrowserChildProcessHostImpl(
IPC::AttachmentBrokerPrivileged::CreateBrokerIfNeeded();
#endif // defined(OS_MACOSX) && !defined(OS_IOS)
#endif // USE_ATTACHMENT_BROKER
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+ mojo::edk::SetMachPortProviderIfNeeded(MachBroker::GetInstance());
jam 2016/03/15 16:27:42 it doesn't make sense that this code is run each t
Anand Mistry (off Chromium) 2016/03/15 20:26:10 I agree, but I think it should be done to both Moj
jam 2016/03/15 23:13:09 yep I meant do both. can they just be moved in thi
Anand Mistry (off Chromium) 2016/03/15 23:30:56 It is small, but this change is already big and co
+#endif // defined(OS_MACOSX) && !defined(OS_IOS)
child_process_host_.reset(ChildProcessHost::Create(this));
AddFilter(new TraceMessageFilter(data_.id));
« no previous file with comments | « no previous file | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698