Commit ba3d632f authored by Lucas Furukawa Gadani's avatar Lucas Furukawa Gadani Committed by Commit Bot

Remove usages of WebContents::GetRenderViewHost().

This CL was uploaded by git cl split.

R=szager@chromium.org

Bug: 1142671
Change-Id: I38de99a1ea146247a0a9e7a6f75eb4826a2cdf72
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500217
Auto-Submit: Lucas Gadani <lfg@chromium.org>
Reviewed-by: default avatarStefan Zager <szager@chromium.org>
Commit-Queue: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/master@{#822724}
parent a5f063ff
......@@ -86,8 +86,11 @@ class MAYBE_DomSerializerTests : public ContentBrowserTest,
}
void SetUpOnMainThread() override {
render_view_routing_id_ =
shell()->web_contents()->GetRenderViewHost()->GetRoutingID();
render_view_routing_id_ = shell()
->web_contents()
->GetMainFrame()
->GetRenderViewHost()
->GetRoutingID();
}
// DomSerializerDelegate.
......@@ -136,8 +139,11 @@ class MAYBE_DomSerializerTests : public ContentBrowserTest,
navigation_observer.Wait();
// After navigations, the RenderView for the new document might be a new
// one.
render_view_routing_id_ =
shell()->web_contents()->GetRenderViewHost()->GetRoutingID();
render_view_routing_id_ = shell()
->web_contents()
->GetMainFrame()
->GetRenderViewHost()
->GetRoutingID();
}
class SingleLinkRewritingDelegate
......
......@@ -105,8 +105,11 @@ IN_PROC_BROWSER_TEST_F(VisualStateTest, DISABLED_CallbackDoesNotDeadlock) {
// with a high level of confidence if we used a timeout, but that's
// discouraged (see https://codereview.chromium.org/939673002).
EXPECT_TRUE(NavigateToURL(shell(), GURL("about:blank")));
CommitObserver observer(RenderView::FromRoutingID(
shell()->web_contents()->GetRenderViewHost()->GetRoutingID()));
CommitObserver observer(RenderView::FromRoutingID(shell()
->web_contents()
->GetMainFrame()
->GetRenderViewHost()
->GetRoutingID()));
// Wait for the commit corresponding to the load.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment