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

Unified Diff: chrome/browser/resources/net_internals/capture_view.js

Issue 1059843002: Refactor NetLog::LogLevel --> NetLogCaptureMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again to fix a merge conflict 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/resources/net_internals/capture_view.js
diff --git a/chrome/browser/resources/net_internals/capture_view.js b/chrome/browser/resources/net_internals/capture_view.js
index 4b0a20f60b257ab2766e795339e2f10ffe95d893..244dc1ced89927a56d9c9553696229d12fbbe163 100644
--- a/chrome/browser/resources/net_internals/capture_view.js
+++ b/chrome/browser/resources/net_internals/capture_view.js
@@ -85,7 +85,7 @@ var CaptureView = (function() {
var byteLoggingCheckbox = $(CaptureView.BYTE_LOGGING_CHECKBOX_ID);
if (byteLoggingCheckbox.checked) {
- g_browser.setLogLevel(LogLevelType.LOG_ALL);
+ g_browser.setCaptureMode('IncludeSocketBytes');
// Once we enable byte logging, all bets are off on what gets captured.
// Have the export view warn that the "strip cookies" option is
@@ -97,7 +97,7 @@ var CaptureView = (function() {
// reload.
ExportView.getInstance().showPrivacyWarning();
} else {
- g_browser.setLogLevel(LogLevelType.LOG_ALL_BUT_BYTES);
+ g_browser.setCaptureMode('IncludeCookiesAndCredentials');
}
},
« no previous file with comments | « chrome/browser/resources/net_internals/browser_bridge.js ('k') | chrome/browser/resources/net_internals/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698