Index: chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc |
diff --git a/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc b/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc |
index 582fe12603f9e3ab7a6959d8a5fddeaa10e13849..e53007b11381b0ebc00e8e11113022abcbdca0c6 100644 |
--- a/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc |
+++ b/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc |
@@ -287,10 +287,10 @@ void LogPrivateAPI::StartObservingNetEvents( |
if (!file->get()) |
return; |
- net_log_logger_.reset(new net::NetLogLogger()); |
- net_log_logger_->set_log_level(net::NetLog::LOG_ALL_BUT_BYTES); |
- net_log_logger_->StartObserving(io_thread->net_log(), file->Pass(), nullptr, |
- nullptr); |
+ write_to_file_observer_.reset(new net::WriteToFileNetLogObserver()); |
+ write_to_file_observer_->set_log_level(net::NetLog::LOG_ALL_BUT_BYTES); |
+ write_to_file_observer_->StartObserving(io_thread->net_log(), file->Pass(), |
+ nullptr, nullptr); |
} |
void LogPrivateAPI::MaybeStartNetInternalLogging( |
@@ -359,8 +359,8 @@ void LogPrivateAPI::StopNetInternalLogging() { |
net_log()->DeprecatedRemoveObserver(this); |
break; |
case api::log_private::EVENT_SINK_FILE: |
- net_log_logger_->StopObserving(nullptr); |
- net_log_logger_.reset(); |
+ write_to_file_observer_->StopObserving(nullptr); |
+ write_to_file_observer_.reset(); |
break; |
case api::log_private::EVENT_SINK_NONE: |
NOTREACHED(); |