| Index: content/browser/web_contents/web_contents_impl.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
| index 4ff0a3a18951b3884bacf6315ffc450b21b2da24..8ddce6002f9ed4e614369ab9dd6cea4411a9b127 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -1956,7 +1956,6 @@ void WebContentsImpl::CreateNewWidget(int32_t render_process_id,
|
| int32_t route_id,
|
| bool is_fullscreen,
|
| blink::WebPopupType popup_type) {
|
| - RenderProcessHost* process = GetRenderProcessHost();
|
| // A message to create a new widget can only come from an active process for
|
| // this WebContentsImpl instance. If any other process sends the request,
|
| // it is invalid and the process must be terminated.
|
| @@ -1971,6 +1970,8 @@ void WebContentsImpl::CreateNewWidget(int32_t render_process_id,
|
| return;
|
| }
|
|
|
| + RenderProcessHost* process = RenderProcessHost::FromID(render_process_id);
|
| +
|
| RenderWidgetHostImpl* widget_host =
|
| new RenderWidgetHostImpl(this, process, route_id, IsHidden());
|
|
|
|
|