| Index: content/renderer/render_view_impl.cc
|
| diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
|
| index 0a8ce9b6810f12a908f87072da12acc1746e1f7c..ee6add31166b77222d3e8ff562afd6aeff42f28b 100644
|
| --- a/content/renderer/render_view_impl.cc
|
| +++ b/content/renderer/render_view_impl.cc
|
| @@ -3024,7 +3024,8 @@ void RenderViewImpl::OnMediaPlayerActionAt(const gfx::Point& location,
|
| }
|
|
|
| void RenderViewImpl::OnOrientationChange() {
|
| - webview()->mainFrame()->toWebLocalFrame()->sendOrientationChangeEvent();
|
| + if (webview() && webview()->mainFrame()->isWebLocalFrame())
|
| + webview()->mainFrame()->toWebLocalFrame()->sendOrientationChangeEvent();
|
| }
|
|
|
| void RenderViewImpl::OnPluginActionAt(const gfx::Point& location,
|
|
|