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

Unified Diff: components/net_log/chrome_net_log.cc

Issue 2965623002: Fix about:flags information not showing up in chrome://net-export/ logs (Closed)
Patch Set: . 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
« no previous file with comments | « components/net_log/chrome_net_log.h ('k') | components/net_log/net_log_file_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « components/net_log/chrome_net_log.h ('k') | components/net_log/net_log_file_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698