| Index: headless/public/util/generic_url_request_job.cc
|
| diff --git a/headless/public/util/generic_url_request_job.cc b/headless/public/util/generic_url_request_job.cc
|
| index d3fc0a7be030b99699f9558bd6a6340a8f5d0afa..3d93ee34d7a7890dfc5ffd90549696af7fef19ca 100644
|
| --- a/headless/public/util/generic_url_request_job.cc
|
| +++ b/headless/public/util/generic_url_request_job.cc
|
| @@ -191,16 +191,9 @@ int GenericURLRequestJob::GetFrameTreeNodeId() const {
|
| if (content::ResourceRequestInfo::GetRenderFrameForRequest(
|
| request_, &render_process_id, &render_frame_routing_id) &&
|
| render_process_id != -1) {
|
| - if (headless_browser_context_) {
|
| - return static_cast<HeadlessBrowserContextImpl*>(headless_browser_context_)
|
| - ->GetFrameTreeNodeId(render_process_id, render_frame_routing_id);
|
| - }
|
| - // TODO(alexclarke): Remove this.
|
| - content::RenderFrameHost* render_frame_host =
|
| - content::RenderFrameHost::FromID(render_process_id,
|
| - render_frame_routing_id);
|
| - DCHECK(render_frame_host);
|
| - return render_frame_host->GetFrameTreeNodeId();
|
| + DCHECK(headless_browser_context_);
|
| + return static_cast<HeadlessBrowserContextImpl*>(headless_browser_context_)
|
| + ->GetFrameTreeNodeId(render_process_id, render_frame_routing_id);
|
| }
|
| // ResourceRequestInfo::GetFrameTreeNodeId is only set for browser side
|
| // navigations.
|
|
|