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

Unified Diff: content/common/child_process_host_impl.cc

Issue 2112543002: Convert UtilityProcessHost to bootstrap Mojo Channel using the Shell connection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@p9x
Patch Set: . Created 4 years, 6 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 | « content/common/child_process_host_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_process_host_impl.cc
diff --git a/content/common/child_process_host_impl.cc b/content/common/child_process_host_impl.cc
index 1dc475da37204b298226e7500c7f1b674a74a6e3..b1690914ec6d57869523152e46e08c2977efef37 100644
--- a/content/common/child_process_host_impl.cc
+++ b/content/common/child_process_host_impl.cc
@@ -146,6 +146,13 @@ std::string ChildProcessHostImpl::CreateChannelMojo(
return channel_id_;
}
+bool ChildProcessHostImpl::CreateChannelMojoWithBootstrap(
+ mojo::ScopedMessagePipeHandle handle) {
+ channel_ = IPC::ChannelMojo::Create(std::move(handle),
+ IPC::Channel::MODE_SERVER, this);
+ return channel_ && InitChannel();
+}
+
std::string ChildProcessHostImpl::CreateChannel() {
DCHECK(channel_id_.empty());
channel_id_ = IPC::Channel::GenerateVerifiedChannelID(std::string());
« no previous file with comments | « content/common/child_process_host_impl.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698