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

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

Issue 423813002: Sdch view for net-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix component linkage Created 6 years, 1 month 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
« no previous file with comments | « chrome/browser/resources/net_internals/index.js ('k') | chrome/browser/resources/net_internals/main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/net_internals/log_view_painter.js
diff --git a/chrome/browser/resources/net_internals/log_view_painter.js b/chrome/browser/resources/net_internals/log_view_painter.js
index 069a5a9481516813ca6aa66150c8b81492d2b78e..38b70f816bbc466994c76471dbc5e44c393fc220 100644
--- a/chrome/browser/resources/net_internals/log_view_painter.js
+++ b/chrome/browser/resources/net_internals/log_view_painter.js
@@ -87,7 +87,7 @@ createLogEntryTablePrinter = function(logEntries, privacyStripping,
}
return tablePrinter;
-}
+};
/**
* Adds a new row to the given TablePrinter, and adds five cells containing
@@ -350,6 +350,12 @@ function defaultWriteParameter(key, value, out) {
return;
}
+ if (key == 'sdch_problem_code' && typeof value == 'number') {
+ var valueStr = value + ' (' + sdchProblemCodeToString(value) + ')';
+ out.writeArrowKeyValue(key, valueStr);
+ return;
+ }
+
// Otherwise just default to JSON formatting of the value.
out.writeArrowKeyValue(key, JSON.stringify(value));
}
@@ -558,7 +564,7 @@ stripCookiesAndLoginInfo = function(entry) {
entry.params.headers = entry.params.headers.map(stripCookieOrLoginInfo);
return entry;
-}
+};
/**
* Outputs the request header parameters of |entry| to |out|.
« no previous file with comments | « chrome/browser/resources/net_internals/index.js ('k') | chrome/browser/resources/net_internals/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698