Commit 8eb33db9 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=antrim@chromium.org

Bug: 1142671
Change-Id: I19f9ac69a3da5fb06c5bb76f365e037b411d7eeb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500214
Auto-Submit: Lucas Gadani <lfg@chromium.org>
Reviewed-by: default avatarDenis Kuznetsov [CET] <antrim@chromium.org>
Commit-Queue: Denis Kuznetsov [CET] <antrim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821215}
parent 673d981f
...@@ -145,9 +145,13 @@ namespace settings_utils { ...@@ -145,9 +145,13 @@ namespace settings_utils {
void ShowNetworkProxySettings(content::WebContents* web_contents) { void ShowNetworkProxySettings(content::WebContents* web_contents) {
base::ThreadPool::PostTask( base::ThreadPool::PostTask(
FROM_HERE, {base::TaskPriority::USER_VISIBLE, base::MayBlock()}, FROM_HERE, {base::TaskPriority::USER_VISIBLE, base::MayBlock()},
base::BindOnce(&DetectAndStartProxyConfigUtil, base::BindOnce(
web_contents->GetRenderViewHost()->GetProcess()->GetID(), &DetectAndStartProxyConfigUtil,
web_contents->GetRenderViewHost()->GetRoutingID())); web_contents->GetMainFrame()
->GetRenderViewHost()
->GetProcess()
->GetID(),
web_contents->GetMainFrame()->GetRenderViewHost()->GetRoutingID()));
} }
} // namespace settings_utils } // namespace settings_utils
...@@ -337,7 +337,7 @@ IN_PROC_BROWSER_TEST_F(WebUIWebViewBrowserTest, DISABLED_DragAndDropToInput) { ...@@ -337,7 +337,7 @@ IN_PROC_BROWSER_TEST_F(WebUIWebViewBrowserTest, DISABLED_DragAndDropToInput) {
// Flush any pending events to make sure we start with a clean slate. // Flush any pending events to make sure we start with a clean slate.
content::RunAllPendingInMessageLoop(); content::RunAllPendingInMessageLoop();
content::RenderViewHost* const render_view_host = content::RenderViewHost* const render_view_host =
embedder_web_contents->GetRenderViewHost(); embedder_web_contents->GetMainFrame()->GetRenderViewHost();
gfx::NativeView view = embedder_web_contents->GetNativeView(); gfx::NativeView view = embedder_web_contents->GetNativeView();
view->SetBounds(gfx::Rect(0, 0, 400, 400)); view->SetBounds(gfx::Rect(0, 0, 400, 400));
......
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