Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(890)

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2053693002: WIP: Move 'Upgrade-Insecure-Requests' to the browser process. Base URL: https://chromium.googlesource.com/chromium/src.git@replicate
Patch Set: DCHECK. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 61976816ab2630427b9625bbea9248af6a7f451a..daae44c97e6bf2432f1899968507d0de665db50b 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -603,6 +603,8 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
}
resource_request->report_raw_headers = request.reportRawHeaders();
resource_request->lofi_state = static_cast<LoFiState>(request.getLoFiState());
+ resource_request->insecure_request_policy =
+ request.getInsecureRequestPolicy();
// PlzNavigate: during navigation, the renderer should request a stream which
// contains the body of the response. The network request has already been

Powered by Google App Engine
This is Rietveld 408576698