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

Unified Diff: net/log/capturing_net_log.cc

Issue 1059843002: Refactor NetLog::LogLevel --> NetLogCaptureMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header for std::max 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: net/log/capturing_net_log.cc
diff --git a/net/log/capturing_net_log.cc b/net/log/capturing_net_log.cc
index 99e72969a55b05c0ed0b73a86852811717c479d8..7507963c1fb05a4de35f4c87f17e5103ee5c433b 100644
--- a/net/log/capturing_net_log.cc
+++ b/net/log/capturing_net_log.cc
@@ -7,15 +7,16 @@
namespace net {
CapturingNetLog::CapturingNetLog() {
- DeprecatedAddObserver(&capturing_net_log_observer_, LOG_ALL_BUT_BYTES);
+ DeprecatedAddObserver(&capturing_net_log_observer_,
+ NetLogCaptureMode::IncludeCookiesAndCredentials());
}
CapturingNetLog::~CapturingNetLog() {
DeprecatedRemoveObserver(&capturing_net_log_observer_);
}
-void CapturingNetLog::SetLogLevel(NetLog::LogLevel log_level) {
- SetObserverLogLevel(&capturing_net_log_observer_, log_level);
+void CapturingNetLog::SetCaptureMode(NetLogCaptureMode capture_mode) {
+ SetObserverCaptureMode(&capturing_net_log_observer_, capture_mode);
}
void CapturingNetLog::GetEntries(
@@ -63,8 +64,8 @@ void CapturingBoundNetLog::Clear() {
capturing_net_log_.Clear();
}
-void CapturingBoundNetLog::SetLogLevel(NetLog::LogLevel log_level) {
- capturing_net_log_.SetLogLevel(log_level);
+void CapturingBoundNetLog::SetCaptureMode(NetLogCaptureMode capture_mode) {
+ capturing_net_log_.SetCaptureMode(capture_mode);
}
} // namespace net
« no previous file with comments | « net/log/capturing_net_log.h ('k') | net/log/net_log.h » ('j') | net/log/net_log_capture_mode.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698