| Index: chrome/browser/resources/net_internals/main.js
|
| diff --git a/chrome/browser/resources/net_internals/main.js b/chrome/browser/resources/net_internals/main.js
|
| index 6a649a219506d8e51107ffbcbdac407bc3ae3e59..c37a66b8803f5137f7a584cb6dc0423722d3a2ac 100644
|
| --- a/chrome/browser/resources/net_internals/main.js
|
| +++ b/chrome/browser/resources/net_internals/main.js
|
| @@ -201,6 +201,7 @@ var MainView = (function() {
|
| addTab(BandwidthView);
|
| addTab(PrerenderView);
|
| addTab(CrosView);
|
| + addTab(SdchView);
|
|
|
| this.tabSwitcher_.showMenuItem(LogsView.TAB_ID, cr.isChromeOS);
|
| this.tabSwitcher_.showMenuItem(CrosView.TAB_ID, cr.isChromeOS);
|
| @@ -311,6 +312,7 @@ ConstantsObserver.prototype.onReceivedConstants = function(receivedConstants) {
|
| QuicRstStreamError = Constants.quicRstStreamError;
|
| AddressFamily = Constants.addressFamily;
|
| LoadState = Constants.loadState;
|
| + SdchProblemCode = Constants.sdchProblemCode;
|
| // certStatusFlag may not be present when loading old log Files
|
| if (typeof(Constants.certStatusFlag) == 'object')
|
| CertStatusFlag = Constants.certStatusFlag;
|
| @@ -389,3 +391,15 @@ function addressFamilyToString(family) {
|
| // Strip that prefix since it is redundant and only clutters the output.
|
| return str.replace(/^ADDRESS_FAMILY_/, '');
|
| }
|
| +
|
| +/**
|
| + * Returns the name for sdchProblemCode.
|
| + *
|
| + * Example: sdchProblemCodeToString(5) should return
|
| + * "DECODE_BODY_ERROR".
|
| + * @param {number} sdchProblemCode The SDCH problem code.
|
| + * @return {string} The name of the given problem code.
|
| + */
|
| +function sdchProblemCodeToString(sdchProblemCode) {
|
| + return getKeyWithValue(SdchProblemCode, sdchProblemCode);
|
| +}
|
|
|