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

Unified Diff: net/udp/udp_net_log_parameters.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/udp/udp_net_log_parameters.cc
diff --git a/net/udp/udp_net_log_parameters.cc b/net/udp/udp_net_log_parameters.cc
index c258823f17755a59bc7ded082055be803d529707..fb25b4c70a967c47125fc54421f18cfcf3114202 100644
--- a/net/udp/udp_net_log_parameters.cc
+++ b/net/udp/udp_net_log_parameters.cc
@@ -16,10 +16,10 @@ namespace {
base::Value* NetLogUDPDataTranferCallback(int byte_count,
const char* bytes,
const IPEndPoint* address,
- NetLog::LogLevel log_level) {
+ NetLogCaptureMode capture_mode) {
base::DictionaryValue* dict = new base::DictionaryValue();
dict->SetInteger("byte_count", byte_count);
- if (NetLog::IsLoggingBytes(log_level))
+ if (capture_mode.include_socket_bytes())
dict->SetString("hex_encoded_bytes", base::HexEncode(bytes, byte_count));
if (address)
dict->SetString("address", address->ToString());
@@ -27,7 +27,7 @@ base::Value* NetLogUDPDataTranferCallback(int byte_count,
}
base::Value* NetLogUDPConnectCallback(const IPEndPoint* address,
- NetLog::LogLevel /* log_level */) {
+ NetLogCaptureMode /* capture_mode */) {
base::DictionaryValue* dict = new base::DictionaryValue();
dict->SetString("address", address->ToString());
return dict;

Powered by Google App Engine
This is Rietveld 408576698