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, ...@@ -86,8 +86,11 @@ class MAYBE_DomSerializerTests : public ContentBrowserTest,
} }
void SetUpOnMainThread() override { void SetUpOnMainThread() override {
render_view_routing_id_ = render_view_routing_id_ = shell()
shell()->web_contents()->GetRenderViewHost()->GetRoutingID(); ->web_contents()
->GetMainFrame()
->GetRenderViewHost()
->GetRoutingID();
} }
// DomSerializerDelegate. // DomSerializerDelegate.
...@@ -136,8 +139,11 @@ class MAYBE_DomSerializerTests : public ContentBrowserTest, ...@@ -136,8 +139,11 @@ class MAYBE_DomSerializerTests : public ContentBrowserTest,
navigation_observer.Wait(); navigation_observer.Wait();
// After navigations, the RenderView for the new document might be a new // After navigations, the RenderView for the new document might be a new
// one. // one.
render_view_routing_id_ = render_view_routing_id_ = shell()
shell()->web_contents()->GetRenderViewHost()->GetRoutingID(); ->web_contents()
->GetMainFrame()
->GetRenderViewHost()
->GetRoutingID();
} }
class SingleLinkRewritingDelegate class SingleLinkRewritingDelegate
......
...@@ -105,8 +105,11 @@ IN_PROC_BROWSER_TEST_F(VisualStateTest, DISABLED_CallbackDoesNotDeadlock) { ...@@ -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 // with a high level of confidence if we used a timeout, but that's
// discouraged (see https://codereview.chromium.org/939673002). // discouraged (see https://codereview.chromium.org/939673002).
EXPECT_TRUE(NavigateToURL(shell(), GURL("about:blank"))); EXPECT_TRUE(NavigateToURL(shell(), GURL("about:blank")));
CommitObserver observer(RenderView::FromRoutingID( CommitObserver observer(RenderView::FromRoutingID(shell()
shell()->web_contents()->GetRenderViewHost()->GetRoutingID())); ->web_contents()
->GetMainFrame()
->GetRenderViewHost()
->GetRoutingID()));
// Wait for the commit corresponding to the load. // 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