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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 1411203010: Separate RenderViewHost from RenderWidgetHost, part 4: delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: done Created 5 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/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 3ced095e950303c4870ec6f7325b6a381874fcef..3b697b18114793a611c8aa3ed16389393b484832 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -1354,9 +1354,8 @@ void RenderWidgetHostViewAndroid::OnFrameMetadataUpdated(
frame_metadata.location_bar_content_translation,
is_mobile_optimized);
#if defined(VIDEO_HOLE)
- if (host_ && host_->IsRenderView()) {
- RenderViewHostImpl* rvhi = static_cast<RenderViewHostImpl*>(
- RenderViewHost::From(host_));
+ if (host_) {
+ RenderViewHostImpl* rvhi = RenderViewHostImpl::From(host_);
WebContentsImpl* web_contents_impl =
static_cast<WebContentsImpl*>(WebContents::FromRenderViewHost(rvhi));
if (web_contents_impl)

Powered by Google App Engine
This is Rietveld 408576698