| Index: components/net_log/chrome_net_log.cc
|
| diff --git a/components/net_log/chrome_net_log.cc b/components/net_log/chrome_net_log.cc
|
| index 5ec2e55a7c50744255247c0d1a3fb57a84521664..304b9929e6324acc50c30676e6ec68a9e8223d1d 100644
|
| --- a/components/net_log/chrome_net_log.cc
|
| +++ b/components/net_log/chrome_net_log.cc
|
| @@ -29,8 +29,7 @@ ChromeNetLog::ChromeNetLog(
|
| net::NetLogCaptureMode log_file_mode,
|
| const base::CommandLine::StringType& command_line_string,
|
| const std::string& channel_string)
|
| - : net_log_file_writer_(
|
| - new NetLogFileWriter(this, command_line_string, channel_string)) {
|
| + : net_log_file_writer_(new NetLogFileWriter(this)) {
|
| if (!log_file.empty()) {
|
| // Much like logging.h, bypass threading restrictions by using fopen
|
| // directly. Have to write on a thread that's shutdown to handle events on
|
| @@ -73,6 +72,12 @@ ChromeNetLog::~ChromeNetLog() {
|
| trace_net_log_observer_->StopWatchForTraceStart();
|
| }
|
|
|
| +NetLogFileWriter* ChromeNetLog::net_log_file_writer() {
|
| + if (!net_log_file_writer_)
|
| + net_log_file_writer_ = base::WrapUnique(new NetLogFileWriter(this));
|
| + return net_log_file_writer_.get();
|
| +}
|
| +
|
| // static
|
| std::unique_ptr<base::Value> ChromeNetLog::GetConstants(
|
| const base::CommandLine::StringType& command_line_string,
|
|
|