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

Unified Diff: content/browser/utility_process_host_impl.cc

Issue 2111353002: Move content's shell connections to the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 e4b822865a202d73a2e56cdb14902d7c5e0946cb..64c7888620af616bf567dfb521d34b1bc6eda4e0 100644
--- a/content/browser/utility_process_host_impl.cc
+++ b/content/browser/utility_process_host_impl.cc
@@ -172,9 +172,9 @@ UtilityProcessHostImpl::UtilityProcessHostImpl(
child_token_));
mojo_child_connection_.reset(new MojoChildConnection(
kUtilityMojoApplicationName,
- base::StringPrintf("%d_0", process_->GetData().id),
- child_token_,
- MojoShellContext::GetConnectorForIOThread()));
+ base::StringPrintf("%d_0", process_->GetData().id), child_token_,
+ MojoShellContext::GetConnectorForIOThread(),
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)));
}
UtilityProcessHostImpl::~UtilityProcessHostImpl() {
@@ -239,11 +239,11 @@ bool UtilityProcessHostImpl::Start() {
}
shell::InterfaceRegistry* UtilityProcessHostImpl::GetInterfaceRegistry() {
- return mojo_child_connection_->connection()->GetInterfaceRegistry();
+ return mojo_child_connection_->GetInterfaceRegistry();
}
shell::InterfaceProvider* UtilityProcessHostImpl::GetRemoteInterfaces() {
- return mojo_child_connection_->connection()->GetRemoteInterfaces();
+ return mojo_child_connection_->GetRemoteInterfaces();
}
void UtilityProcessHostImpl::SetName(const base::string16& name) {

Powered by Google App Engine
This is Rietveld 408576698