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

Unified Diff: content/browser/utility_process_host_impl.cc

Issue 2138263002: Revert of Move content's shell connections to the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: content/browser/utility_process_host_impl.cc
diff --git a/content/browser/utility_process_host_impl.cc b/content/browser/utility_process_host_impl.cc
index ddab80680dec3fe9662788ae7426c0285ad84905..e4b822865a202d73a2e56cdb14902d7c5e0946cb 100644
--- a/content/browser/utility_process_host_impl.cc
+++ b/content/browser/utility_process_host_impl.cc
@@ -172,10 +172,9 @@
child_token_));
mojo_child_connection_.reset(new MojoChildConnection(
kUtilityMojoApplicationName,
- base::StringPrintf("%d_0", process_->GetData().id), child_token_,
- MojoShellContext::GetConnectorForIOThread(),
- BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO)
- ->task_runner()));
+ base::StringPrintf("%d_0", process_->GetData().id),
+ child_token_,
+ MojoShellContext::GetConnectorForIOThread()));
}
UtilityProcessHostImpl::~UtilityProcessHostImpl() {
@@ -240,11 +239,11 @@
}
shell::InterfaceRegistry* UtilityProcessHostImpl::GetInterfaceRegistry() {
- return mojo_child_connection_->GetInterfaceRegistry();
+ return mojo_child_connection_->connection()->GetInterfaceRegistry();
}
shell::InterfaceProvider* UtilityProcessHostImpl::GetRemoteInterfaces() {
- return mojo_child_connection_->GetRemoteInterfaces();
+ return mojo_child_connection_->connection()->GetRemoteInterfaces();
}
void UtilityProcessHostImpl::SetName(const base::string16& name) {

Powered by Google App Engine
This is Rietveld 408576698