Commit 59501291 authored by John Abd-El-Malek's avatar John Abd-El-Malek Committed by Commit Bot

Remove some dead code in RenderFrameImpl relating to PlzNavigate & RequestExtraData.

This code was added in r446462 when we were always creating new RequestExtraData. After r456081 we only create one if it's not present, so this code is not needed anymore.

Change-Id: I799afd7ea03a6ef4d3c346aa85cc1d7c34b4d0ba
Reviewed-on: https://chromium-review.googlesource.com/1164400Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Commit-Queue: John Abd-El-Malek <jam@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581105}
parent d8e75830
......@@ -4887,21 +4887,6 @@ void RenderFrameImpl::WillSendRequest(blink::WebURLRequest& request) {
extra_data->set_initiated_in_secure_context(frame_document.IsSecureContext());
extra_data->set_attach_same_site_cookies(attach_same_site_cookies);
// Renderer process transfers apply only to navigational requests.
bool is_navigational_request =
request.GetFrameType() != network::mojom::RequestContextFrameType::kNone;
if (is_navigational_request) {
// For navigation requests, we should copy the flag which indicates if this
// was a navigation initiated by the renderer to the new RequestExtraData
// instance.
RequestExtraData* current_request_data =
static_cast<RequestExtraData*>(request.GetExtraData());
if (current_request_data) {
extra_data->set_navigation_initiated_by_renderer(
current_request_data->navigation_initiated_by_renderer());
}
}
// The RenderThreadImpl or its URLLoaderThrottleProvider member may not be
// valid in some tests.
RenderThreadImpl* render_thread = RenderThreadImpl::current();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment