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

Unified Diff: content/browser/site_per_process_browsertest.cc

Issue 2420843004: Clean up mojom::Renderer usage in RPH (Closed)
Patch Set: rebase Created 4 years, 2 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
Index: content/browser/site_per_process_browsertest.cc
diff --git a/content/browser/site_per_process_browsertest.cc b/content/browser/site_per_process_browsertest.cc
index fa607a9442b65816ff67930b2fadc685297cf646..67ff7ca2eee5792ba26c4f2bac9b60a00a32501a 100644
--- a/content/browser/site_per_process_browsertest.cc
+++ b/content/browser/site_per_process_browsertest.cc
@@ -6144,7 +6144,7 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
// Send the message to create a proxy for B's new child frame in A. This
// used to crash, as parent_routing_id refers to a proxy that doesn't exist
// anymore.
- RenderProcessHostImpl::GetRendererInterface(process_a)->CreateFrameProxy(
+ process_a->GetRendererInterface()->CreateFrameProxy(
new_routing_id, view_routing_id, MSG_ROUTING_NONE, parent_routing_id,
FrameReplicationState());
@@ -6220,8 +6220,7 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest,
params->widget_params->hidden = true;
params->replication_state.name = "name";
params->replication_state.unique_name = "name";
- RenderProcessHostImpl::GetRendererInterface(process)->CreateFrame(
- std::move(params));
+ process->GetRendererInterface()->CreateFrame(std::move(params));
}
// The test must wait for the process to exit, but if there is no leak, the
@@ -6286,8 +6285,7 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, ParentDetachRemoteChild) {
params->widget_params->hidden = true;
params->replication_state.name = "name";
params->replication_state.unique_name = "name";
- RenderProcessHostImpl::GetRendererInterface(process)->CreateFrame(
- std::move(params));
+ process->GetRendererInterface()->CreateFrame(std::move(params));
}
// The test must wait for the process to exit, but if there is no leak, the
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/public/browser/render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698