Index: components/cronet/android/cronet_url_request_context_adapter.cc |
diff --git a/components/cronet/android/cronet_url_request_context_adapter.cc b/components/cronet/android/cronet_url_request_context_adapter.cc |
index 5a1f56921a8d34720f8aea0ad9a9780ff18cc234..82446a8cb5fb95902bbfe5674c034f239d8b8329 100644 |
--- a/components/cronet/android/cronet_url_request_context_adapter.cc |
+++ b/components/cronet/android/cronet_url_request_context_adapter.cc |
@@ -286,23 +286,23 @@ void CronetURLRequestContextAdapter::StartNetLogToFileOnNetworkThread( |
DCHECK(is_context_initialized_); |
DCHECK(context_); |
// Do nothing if already logging to a file. |
- if (net_log_logger_) |
+ if (write_to_file_observer_) |
return; |
base::FilePath file_path(file_name); |
base::ScopedFILE file(base::OpenFile(file_path, "w")); |
if (!file) |
return; |
- net_log_logger_.reset(new net::WriteToFileNetLogObserver()); |
- net_log_logger_->StartObserving(context_->net_log(), file.Pass(), nullptr, |
- context_.get()); |
+ write_to_file_observer_.reset(new net::WriteToFileNetLogObserver()); |
+ write_to_file_observer_->StartObserving(context_->net_log(), file.Pass(), |
+ nullptr, context_.get()); |
} |
void CronetURLRequestContextAdapter::StopNetLogOnNetworkThread() { |
DCHECK(GetNetworkTaskRunner()->BelongsToCurrentThread()); |
- if (net_log_logger_) { |
- net_log_logger_->StopObserving(context_.get()); |
- net_log_logger_.reset(); |
+ if (write_to_file_observer_) { |
+ write_to_file_observer_->StopObserving(context_.get()); |
+ write_to_file_observer_.reset(); |
} |
} |