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

Unified Diff: net/log/net_log_util.cc

Issue 1059843002: Refactor NetLog::LogLevel --> NetLogCaptureMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix some translation bugs 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/net_log_util.cc
diff --git a/net/log/net_log_util.cc b/net/log/net_log_util.cc
index ccaaf227355e538ee0f1f0906ef15feb778702be..f9983b08daa430f230254c2f6e8e17f091933d97 100644
--- a/net/log/net_log_util.cc
+++ b/net/log/net_log_util.cc
@@ -129,7 +129,7 @@ bool RequestCreatedBefore(const net::URLRequest* request1,
// Returns a Value representing the state of a pre-existing URLRequest when
// net-internals was opened.
base::Value* GetRequestStateAsValue(const net::URLRequest* request,
- net::NetLog::LogLevel log_level) {
+ net::NetLogCaptureMode capture_mode) {
return request->GetStateAsValue();
}
@@ -260,10 +260,10 @@ scoped_ptr<base::DictionaryValue> GetNetConstants() {
{
base::DictionaryValue* dict = new base::DictionaryValue();
- dict->SetInteger("LOG_ALL", net::NetLog::LOG_ALL);
- dict->SetInteger("LOG_ALL_BUT_BYTES", net::NetLog::LOG_ALL_BUT_BYTES);
+ dict->SetInteger("LOG_ALL", NetLogCaptureMode::ALL);
+ dict->SetInteger("LOG_ALL_BUT_BYTES", NetLogCaptureMode::ALL_BUT_BYTES);
dict->SetInteger("LOG_STRIP_PRIVATE_DATA",
- net::NetLog::LOG_STRIP_PRIVATE_DATA);
+ NetLogCaptureMode::STRIP_PRIVATE_DATA);
constants_dict->Set("logLevelType", dict);
}
@@ -555,7 +555,7 @@ NET_EXPORT void CreateNetLogEntriesForActiveObjects(
net::NetLog::EntryData entry_data(
net::NetLog::TYPE_REQUEST_ALIVE, request->net_log().source(),
net::NetLog::PHASE_BEGIN, request->creation_time(), &callback);
- NetLog::Entry entry(&entry_data, request->net_log().GetLogLevel());
+ NetLog::Entry entry(&entry_data, request->net_log().GetCaptureMode());
observer->OnAddEntry(entry);
}
}

Powered by Google App Engine
This is Rietveld 408576698