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

Unified Diff: net/url_request/url_request_context.cc

Issue 2546213003: Implement net/ support for Android's NetworkSecurityPolicy (Closed)
Patch Set: More comments 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: net/url_request/url_request_context.cc
diff --git a/net/url_request/url_request_context.cc b/net/url_request/url_request_context.cc
index 1e3dc4ead60cf6f6e5bfbeb349b0808af2e2db36..7efcb0a7e5b4cb5d4e7fbd72a0690bb3d8705518 100644
--- a/net/url_request/url_request_context.cc
+++ b/net/url_request/url_request_context.cc
@@ -37,7 +37,8 @@ URLRequestContext::URLRequestContext()
sdch_manager_(nullptr),
network_quality_estimator_(nullptr),
url_requests_(new std::set<const URLRequest*>),
- enable_brotli_(false) {}
+ enable_brotli_(false),
+ check_cleartext_permitted_(false) {}
URLRequestContext::~URLRequestContext() {
AssertNoURLRequests();
@@ -66,6 +67,7 @@ void URLRequestContext::CopyFrom(const URLRequestContext* other) {
set_http_user_agent_settings(other->http_user_agent_settings_);
set_network_quality_estimator(other->network_quality_estimator_);
set_enable_brotli(other->enable_brotli_);
+ set_check_cleartext_permitted(other->check_cleartext_permitted_);
}
const HttpNetworkSession::Params* URLRequestContext::GetNetworkSessionParams(

Powered by Google App Engine
This is Rietveld 408576698