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

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: Adopt logging for URLReqest-based dict fetcher + cosmetics Created 6 years, 3 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/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|.

Powered by Google App Engine
This is Rietveld 408576698