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

Unified Diff: content/child/child_thread_impl.cc

Issue 2343783003: Corrects mojom::RouteProvider registration in ChildThreadImpl (Closed)
Patch Set: Created 4 years, 3 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 | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index 236d222b8cf64c061414f0b0ea1d56d391b827ec..8fa0804beb1aee275d7999b4907a34e1915a3307 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -570,12 +570,12 @@ void ChildThreadImpl::Init(const Options& options) {
if (broker && !broker->IsPrivilegedBroker())
broker->RegisterBrokerCommunicationChannel(channel_.get());
- ConnectChannel(options.use_mojo_channel);
-
channel_->AddAssociatedInterface(
base::Bind(&ChildThreadImpl::OnRouteProviderRequest,
base::Unretained(this)));
+ ConnectChannel(options.use_mojo_channel);
+
// This must always be done after ConnectChannel, because ConnectChannel() may
// add a ConnectionFilter to the connection.
if (options.auto_start_mojo_shell_connection && mojo_shell_connection_)
« no previous file with comments | « no previous file | ipc/ipc_channel_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698