Commit 40481314 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=jwd@chromium.org

Bug: 1142671
Change-Id: I9501b09c902d0741f7bbd92d1ada0ff06bfa5136
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2500609
Auto-Submit: Lucas Gadani <lfg@chromium.org>
Reviewed-by: default avatarJesse Doherty <jwd@chromium.org>
Commit-Queue: Jesse Doherty <jwd@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821270}
parent 83ae6128
......@@ -14,7 +14,7 @@ DesktopSessionDurationObserver::DesktopSessionDurationObserver(
content::WebContents* web_contents,
DesktopSessionDurationTracker* service)
: content::WebContentsObserver(web_contents), service_(service) {
RegisterInputEventObserver(web_contents->GetRenderViewHost());
RegisterInputEventObserver(web_contents->GetMainFrame()->GetRenderViewHost());
}
DesktopSessionDurationObserver::~DesktopSessionDurationObserver() {}
......
......@@ -208,7 +208,7 @@ void MetricsMemoryDetails::UpdateSiteIsolationMetrics() {
// If this is a RVH for a subframe; skip it to avoid double-counting the
// WebContents.
if (rvh != contents->GetRenderViewHost())
if (rvh != contents->GetMainFrame()->GetRenderViewHost())
continue;
// The rest of this block will happen only once per WebContents.
......
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