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

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

Issue 2760073002: [cronet] Expose API to set experimental options (Closed)
Patch Set: sync Created 3 years, 8 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
« no previous file with comments | « components/cronet/ios/cronet_environment.h ('k') | components/cronet/ios/test/cronet_http_test.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/ios/cronet_environment.mm
diff --git a/components/cronet/ios/cronet_environment.mm b/components/cronet/ios/cronet_environment.mm
index e886659100504e8358719afbb5a616d6e7fdd65d..6c7c479b6b1b24ea1a45821bc2aead8f3b3faaad 100644
--- a/components/cronet/ios/cronet_environment.mm
+++ b/components/cronet/ios/cronet_environment.mm
@@ -266,12 +266,9 @@ void CronetEnvironment::InitializeOnNetworkThread() {
static bool ssl_key_log_file_set = false;
if (!ssl_key_log_file_set && !ssl_key_log_file_name_.empty()) {
ssl_key_log_file_set = true;
- base::FilePath ssl_key_log_file;
- if (!PathService::Get(base::DIR_HOME, &ssl_key_log_file))
- return;
- net::SSLClientSocket::SetSSLKeyLogFile(
- ssl_key_log_file.Append(ssl_key_log_file_name_),
- file_thread_->task_runner());
+ base::FilePath ssl_key_log_file(ssl_key_log_file_name_);
+ net::SSLClientSocket::SetSSLKeyLogFile(ssl_key_log_file,
+ file_thread_->task_runner());
}
if (user_agent_partial_)
@@ -291,6 +288,8 @@ void CronetEnvironment::InitializeOnNetworkThread() {
cache_path.value(); // Storage path for http cache and cookie storage.
context_config_builder.user_agent =
user_agent_; // User-Agent request header field.
+ context_config_builder.experimental_options =
+ experimental_options_; // Set experimental Cronet options.
context_config_builder.mock_cert_verifier = std::move(
mock_cert_verifier_); // MockCertVerifier to use for testing purposes.
std::unique_ptr<URLRequestContextConfig> config =
« no previous file with comments | « components/cronet/ios/cronet_environment.h ('k') | components/cronet/ios/test/cronet_http_test.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698