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

Unified Diff: chrome/browser/net/net_log_temp_file.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
Index: chrome/browser/net/net_log_temp_file.cc
diff --git a/chrome/browser/net/net_log_temp_file.cc b/chrome/browser/net/net_log_temp_file.cc
index 99f29aa3775e1aa615eb1b2bca12a88e70fad4cc..35a170fc6c28d9d0de13db92f6b9d9efeee2565a 100644
--- a/chrome/browser/net/net_log_temp_file.cc
+++ b/chrome/browser/net/net_log_temp_file.cc
@@ -22,8 +22,8 @@ NetLogTempFile::NetLogTempFile(ChromeNetLog* chrome_net_log)
}
NetLogTempFile::~NetLogTempFile() {
- if (net_log_logger_)
- net_log_logger_->StopObserving(nullptr);
+ if (write_to_file_observer_)
+ write_to_file_observer_->StopObserving(nullptr);
}
void NetLogTempFile::ProcessCommand(Command command) {
@@ -145,10 +145,10 @@ void NetLogTempFile::StartNetLog(LogType log_type) {
state_ = STATE_LOGGING;
scoped_ptr<base::Value> constants(NetInternalsUI::GetConstants());
- net_log_logger_.reset(new net::WriteToFileNetLogObserver());
- net_log_logger_->set_capture_mode(GetCaptureModeForLogType(log_type));
- net_log_logger_->StartObserving(chrome_net_log_, file.Pass(), constants.get(),
- nullptr);
+ write_to_file_observer_.reset(new net::WriteToFileNetLogObserver());
+ write_to_file_observer_->set_capture_mode(GetCaptureModeForLogType(log_type));
+ write_to_file_observer_->StartObserving(chrome_net_log_, file.Pass(),
+ constants.get(), nullptr);
}
void NetLogTempFile::StopNetLog() {
@@ -156,8 +156,8 @@ void NetLogTempFile::StopNetLog() {
if (state_ != STATE_LOGGING)
return;
- net_log_logger_->StopObserving(nullptr);
- net_log_logger_.reset();
+ write_to_file_observer_->StopObserving(nullptr);
+ write_to_file_observer_.reset();
state_ = STATE_NOT_LOGGING;
}
« no previous file with comments | « chrome/browser/net/net_log_temp_file.h ('k') | components/cronet/android/cronet_url_request_context_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698