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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2351333002: Move ViewHostMsg_GenerateRoutingID to mojom (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 | « content/renderer/render_thread_impl.h ('k') | no next file » | 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 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;
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698