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

Unified Diff: components/cronet/ios/cronet_environment.h

Issue 2937523002: add setter for enable_pkp_bypass_etc (Closed)
Patch Set: add test for set_enable_pkp_bypass_etc Created 3 years, 6 months 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: components/cronet/ios/cronet_environment.h
diff --git a/components/cronet/ios/cronet_environment.h b/components/cronet/ios/cronet_environment.h
index 99eb667ace5e7fff2c6f8311a48c0703e63197db..53289b413ef9cfe88838251dec797467935f9c19 100644
--- a/components/cronet/ios/cronet_environment.h
+++ b/components/cronet/ios/cronet_environment.h
@@ -105,6 +105,11 @@ class CronetEnvironment {
pkp_list_ = std::move(pkp_list);
}
+ void set_enable_public_key_pinning_bypass_for_local_trust_anchors(
+ bool enable) {
+ enable_pkp_bypass_for_local_trust_anchors_ = enable;
+ }
+
// Returns the URLRequestContext associated with this object.
net::URLRequestContext* GetURLRequestContext() const;
@@ -162,6 +167,7 @@ class CronetEnvironment {
bool user_agent_partial_;
std::unique_ptr<net::NetLog> net_log_;
std::unique_ptr<net::WriteToFileNetLogObserver> net_log_observer_;
+ bool enable_pkp_bypass_for_local_trust_anchors_;
DISALLOW_COPY_AND_ASSIGN(CronetEnvironment);
};

Powered by Google App Engine
This is Rietveld 408576698