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

Unified Diff: chrome/browser/net/net_log_temp_file.h

Issue 1059843002: Refactor NetLog::LogLevel --> NetLogCaptureMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update copyright 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/net/net_log_temp_file.h
diff --git a/chrome/browser/net/net_log_temp_file.h b/chrome/browser/net/net_log_temp_file.h
index 3f2c2c7c5806fe69f673f01ef9b5b04f2ee029eb..2254b6e18e6dfb64f275a283c4ea62ba0885e0e3 100644
--- a/chrome/browser/net/net_log_temp_file.h
+++ b/chrome/browser/net/net_log_temp_file.h
@@ -113,8 +113,8 @@ class NetLogTempFile {
LOG_TYPE_STRIP_PRIVATE_DATA,
};
- // Returns the NetLog::LogLevel corresponding to a LogType.
- static net::NetLog::LogLevel GetLogLevelForLogType(LogType log_type);
+ // Returns the NetLog::CaptureMode corresponding to a LogType.
+ static net::NetLogCaptureMode GetCaptureModeForLogType(LogType log_type);
// Initializes the |state_| to STATE_NOT_LOGGING and |log_type_| to
// LOG_TYPE_NONE (if there is no temporary file from earlier run) or
@@ -123,8 +123,9 @@ class NetLogTempFile {
bool EnsureInit();
// Start collecting NetLog data into chrome-net-export-log.json file in
- // base::GetTempDir() directory, using the specified log level. It is a no-op
- // if we are already collecting data into a file, and |log_level| is ignored.
+ // base::GetTempDir() directory, using the specified capture mode. It is a
+ // no-op if we are already collecting data into a file, and |capture_mode| is
+ // ignored.
// TODO(mmenke): That's rather weird behavior, think about improving it.
void StartNetLog(LogType log_type);

Powered by Google App Engine
This is Rietveld 408576698