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

Unified Diff: content/gpu/gpu_child_thread.cc

Issue 2653973002: 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') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_child_thread.cc
diff --git a/content/gpu/gpu_child_thread.cc b/content/gpu/gpu_child_thread.cc
index 9cfd41ab22707c88dea50ca8e60289f4d331680b..f392f2766a19867651855f2f04792b74e076e6a3 100644
--- a/content/gpu/gpu_child_thread.cc
+++ b/content/gpu/gpu_child_thread.cc
@@ -285,7 +285,10 @@ bool GpuChildThread::OnMessageReceived(const IPC::Message& msg) {
void GpuChildThread::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));
}
void GpuChildThread::CreateGpuService(
« no previous file with comments | « content/common/associated_interface_registry_impl.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698