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

Unified Diff: chrome/browser/net/chrome_net_log.cc

Issue 1079163007: net_log_logger_ replaced with write_to_file_observer_ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: net_log_logger_ replaced with write_to_file_observer_ Created 5 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 | « chrome/browser/net/chrome_net_log.h ('k') | chrome/browser/net/net_log_temp_file.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_net_log.cc
diff --git a/chrome/browser/net/chrome_net_log.cc b/chrome/browser/net/chrome_net_log.cc
index 674ee64a72e9df096506edb4043014a5fc0adbcf..316d581c0723116d32ed9e89a15986f1d8cbff2a 100644
--- a/chrome/browser/net/chrome_net_log.cc
+++ b/chrome/browser/net/chrome_net_log.cc
@@ -83,14 +83,14 @@ ChromeNetLog::ChromeNetLog()
<< " for net logging";
} else {
scoped_ptr<base::Value> constants(NetInternalsUI::GetConstants());
- net_log_logger_.reset(new net::WriteToFileNetLogObserver());
+ write_to_file_observer_.reset(new net::WriteToFileNetLogObserver());
net::NetLogCaptureMode capture_mode =
GetCaptureModeFromCommandLine(command_line);
- net_log_logger_->set_capture_mode(capture_mode);
+ write_to_file_observer_->set_capture_mode(capture_mode);
- net_log_logger_->StartObserving(this, file.Pass(), constants.get(),
- nullptr);
+ write_to_file_observer_->StartObserving(this, file.Pass(),
+ constants.get(), nullptr);
}
}
@@ -101,8 +101,8 @@ ChromeNetLog::ChromeNetLog()
ChromeNetLog::~ChromeNetLog() {
net_log_temp_file_.reset();
// Remove the observers we own before we're destroyed.
- if (net_log_logger_)
- net_log_logger_->StopObserving(nullptr);
+ if (write_to_file_observer_)
+ write_to_file_observer_->StopObserving(nullptr);
if (trace_net_log_observer_)
trace_net_log_observer_->StopWatchForTraceStart();
}
« no previous file with comments | « chrome/browser/net/chrome_net_log.h ('k') | chrome/browser/net/net_log_temp_file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698