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

Unified Diff: components/cronet/android/cronet_url_request_context_adapter.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: 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();
}
}

Powered by Google App Engine
This is Rietveld 408576698