Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index 189ac67d4a19286d009d5007891ce90cd23d473a..312de234bb96f1205956e98f00ea6906eaf73093 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -341,9 +341,10 @@ RenderWidgetHostViewAndroid* |
if (web_contents_) { |
rwhv = web_contents_->GetRenderWidgetHostView(); |
if (web_contents_->ShowingInterstitialPage()) { |
- rwhv = static_cast<InterstitialPageImpl*>( |
- web_contents_->GetInterstitialPage())-> |
- GetRenderViewHost()->GetView(); |
+ rwhv = web_contents_->GetInterstitialPage() |
+ ->GetMainFrame() |
+ ->GetRenderViewHost() |
+ ->GetView(); |
} |
} |
return static_cast<RenderWidgetHostViewAndroid*>(rwhv); |