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

Unified Diff: chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc

Issue 1084533002: Rename NetLogLogger and CapturingNetLog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename NetLogLogger and CapturingNetLog(removed compiler error for chromeOS) 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: 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();

Powered by Google App Engine
This is Rietveld 408576698