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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2653943003: Remove associated interface registration from ChannelProxy (Closed)
Patch Set: Created 3 years, 11 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/associated_interface_registry_impl.cc ('k') | ipc/ipc_channel_mojo_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index bb055354ccfa160cd09d334117d72d0034bef08e..00a8accbe2cdc3c77c6fce3fd28cd697ff0524d5 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1483,7 +1483,10 @@ RenderThreadImpl::GetLoadingTaskRunner() {
void RenderThreadImpl::OnAssociatedInterfaceRequest(
const std::string& name,
mojo::ScopedInterfaceEndpointHandle handle) {
- associated_interfaces_.BindRequest(name, std::move(handle));
+ if (associated_interfaces_.CanBindRequest(name))
+ associated_interfaces_.BindRequest(name, std::move(handle));
+ else
+ ChildThreadImpl::OnAssociatedInterfaceRequest(name, std::move(handle));
}
bool RenderThreadImpl::IsGpuRasterizationForced() {
« no previous file with comments | « content/common/associated_interface_registry_impl.cc ('k') | ipc/ipc_channel_mojo_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698