Index: chrome/browser/io_thread.cc |
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc |
index 952964b1b79a7b16d32de582d06b4334a6b7086f..0e898fefad768c80ba33f0cc757e594873babaac 100644 |
--- a/chrome/browser/io_thread.cc |
+++ b/chrome/browser/io_thread.cc |
@@ -12,6 +12,7 @@ |
#include "base/command_line.h" |
#include "base/compiler_specific.h" |
#include "base/debug/leak_tracker.h" |
+#include "base/environment.h" |
#include "base/logging.h" |
#include "base/metrics/field_trial.h" |
#include "base/prefs/pref_registry_simple.h" |
@@ -80,6 +81,7 @@ |
#include "net/quic/crypto/crypto_protocol.h" |
#include "net/quic/quic_protocol.h" |
#include "net/quic/quic_utils.h" |
+#include "net/socket/ssl_client_socket_openssl.h" |
#include "net/socket/tcp_client_socket.h" |
#include "net/spdy/spdy_session.h" |
#include "net/ssl/channel_id_service.h" |
@@ -553,6 +555,13 @@ void IOThread::Init() { |
const base::CommandLine& command_line = |
*base::CommandLine::ForCurrentProcess(); |
+ if (command_line.HasSwitch(switches::kSSLKeyLogFile)) { |
+ scoped_ptr<base::Environment> env(base::Environment::Create()); |
+ std::string switch_value = command_line.GetSwitchValueNative( |
+ switches::kSSLKeyLogFile); |
+ env->SetVar("SSLKEYLOGFILE", switch_value); |
Bryan McQuade
2015/10/13 14:33:36
Thanks for putting this patch together!
I don't k
davidben
2015/10/13 16:07:39
I think something on HttpNetworkSession::Params is
|
+ } |
+ |
DCHECK(!globals_); |
globals_ = new Globals; |