Index: content/renderer/render_thread_impl.cc |
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc |
index 7c267b35fa6afcdd8e0997e16bafbd8f9635900c..09d716986497a07756e1691b4c47af983b16604d 100644 |
--- a/content/renderer/render_thread_impl.cc |
+++ b/content/renderer/render_thread_impl.cc |
@@ -1104,8 +1104,8 @@ mojom::StoragePartitionService* RenderThreadImpl::GetStoragePartitionService() { |
} |
int RenderThreadImpl::GenerateRoutingID() { |
- int routing_id = MSG_ROUTING_NONE; |
- Send(new ViewHostMsg_GenerateRoutingID(&routing_id)); |
+ int32_t routing_id = MSG_ROUTING_NONE; |
+ render_message_filter()->GenerateRoutingID(&routing_id); |
return routing_id; |
} |
@@ -1998,6 +1998,12 @@ RenderThreadImpl::render_frame_message_filter() { |
return render_frame_message_filter_.get(); |
} |
+mojom::RenderMessageFilter* RenderThreadImpl::render_message_filter() { |
+ if (!render_message_filter_) |
+ GetChannel()->GetRemoteAssociatedInterface(&render_message_filter_); |
+ return render_message_filter_.get(); |
+} |
+ |
gpu::GpuChannelHost* RenderThreadImpl::GetGpuChannel() { |
if (!gpu_channel_) |
return nullptr; |