Index: content/renderer/render_view_impl.cc |
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
index 50d6749b139a644e5db4d6cd5512549954529876..506a5a1a7b604a8499c0a0cbeb4de2f473e35771 100644 |
--- a/content/renderer/render_view_impl.cc |
+++ b/content/renderer/render_view_impl.cc |
@@ -1138,7 +1138,8 @@ bool RenderViewImpl::RenderWidgetWillHandleMouseEvent( |
bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) { |
WebFrame* main_frame = webview() ? webview()->MainFrame() : NULL; |
if (main_frame && main_frame->IsWebLocalFrame()) |
- GetContentClient()->SetActiveURL(main_frame->GetDocument().Url()); |
+ GetContentClient()->SetActiveURL( |
+ main_frame->ToWebLocalFrame()->GetDocument().Url()); |
// Input IPC messages must not be processed if the RenderView is in |
// swapped out state. |
@@ -2238,7 +2239,7 @@ void RenderViewImpl::OnUpdateScreenInfo(const ScreenInfo& screen_info) { |
GURL RenderViewImpl::GetURLForGraphicsContext3D() { |
DCHECK(webview()); |
if (webview()->MainFrame()->IsWebLocalFrame()) |
- return GURL(webview()->MainFrame()->GetDocument().Url()); |
+ return GURL(webview()->MainFrame()->ToWebLocalFrame()->GetDocument().Url()); |
else |
return GURL("chrome://gpu/RenderViewImpl::CreateGraphicsContext3D"); |
} |