| Index: content/browser/frame_host/cross_process_frame_connector.cc
|
| diff --git a/content/browser/frame_host/cross_process_frame_connector.cc b/content/browser/frame_host/cross_process_frame_connector.cc
|
| index 5fc3c272ef19dfb3f5df3afda32797ba782d5477..1ca49b4e402412afe8f5e5282ec3a5df73b00661 100644
|
| --- a/content/browser/frame_host/cross_process_frame_connector.cc
|
| +++ b/content/browser/frame_host/cross_process_frame_connector.cc
|
| @@ -301,6 +301,10 @@ void CrossProcessFrameConnector::SetRect(const gfx::Rect& frame_rect) {
|
|
|
| RenderWidgetHostViewBase*
|
| CrossProcessFrameConnector::GetRootRenderWidgetHostView() {
|
| + // Tests may not have frame_proxy_in_parent_renderer_ set.
|
| + if (!frame_proxy_in_parent_renderer_)
|
| + return nullptr;
|
| +
|
| RenderFrameHostImpl* top_host = frame_proxy_in_parent_renderer_->
|
| frame_tree_node()->frame_tree()->root()->current_frame_host();
|
|
|
|
|