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

Unified Diff: components/cronet/android/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
« no previous file with comments | « components/cronet/android/url_request_context_adapter.h ('k') | content/shell/browser/shell_net_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/android/url_request_context_adapter.cc
diff --git a/components/cronet/android/url_request_context_adapter.cc b/components/cronet/android/url_request_context_adapter.cc
index 8fc3e02a314284a57d5e5929e82fc5f690e26921..30e84d94f661fa07e91235181ef0ad502ce27c54 100644
--- a/components/cronet/android/url_request_context_adapter.cc
+++ b/components/cronet/android/url_request_context_adapter.cc
@@ -278,7 +278,7 @@ void URLRequestContextAdapter::StartNetLogToFileHelper(
const std::string& file_name) {
DCHECK(GetNetworkTaskRunner()->BelongsToCurrentThread());
// Do nothing if already logging to a file.
- if (net_log_logger_)
+ if (write_to_file_observer_)
return;
base::FilePath file_path(file_name);
@@ -286,16 +286,16 @@ void URLRequestContextAdapter::StartNetLogToFileHelper(
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 URLRequestContextAdapter::StopNetLogHelper() {
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();
}
}
« no previous file with comments | « components/cronet/android/url_request_context_adapter.h ('k') | content/shell/browser/shell_net_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698