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; |
} |