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

Unified Diff: netlog_viewer/netlog_viewer/bandwidth_view.js

Issue 3011363002: Apply Chromium changes up to commit 0036296a1128ac9cbefeaff51c8df831ec421c36 (Closed)
Patch Set: address comments Created 3 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
« no previous file with comments | « netlog_viewer/netlog_viewer/alt_svc_view.js ('k') | netlog_viewer/netlog_viewer/browser_bridge.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: netlog_viewer/netlog_viewer/bandwidth_view.js
diff --git a/netlog_viewer/netlog_viewer/bandwidth_view.js b/netlog_viewer/netlog_viewer/bandwidth_view.js
index 2fd604cdc3114d0b3d1e47b8eac13f67f0ccb0ca..5899aa7139c6c1ec0a8620e71ad1adbc10036966 100644
--- a/netlog_viewer/netlog_viewer/bandwidth_view.js
+++ b/netlog_viewer/netlog_viewer/bandwidth_view.js
@@ -62,7 +62,7 @@ var BandwidthView = (function() {
return this.onBadProxiesChanged(data.badProxies) &&
this.onDataReductionProxyInfoChanged(data.dataReductionProxyInfo) &&
(this.onSessionNetworkStatsChanged(data.sessionNetworkStats) ||
- this.onHistoricNetworkStatsChanged(data.historicNetworkStats));
+ this.onHistoricNetworkStatsChanged(data.historicNetworkStats));
},
/**
@@ -107,7 +107,7 @@ var BandwidthView = (function() {
this.updateDataReductionProxyConfig_();
for (var eventIndex = info.events.length - 1; eventIndex >= 0;
- --eventIndex) {
+ --eventIndex) {
var event = info.events[eventIndex];
var headerRow = addNode($(BandwidthView.EVENTS_TBODY_ID), 'tr');
var detailsRow = addNode($(BandwidthView.EVENTS_TBODY_ID), 'tr');
@@ -166,27 +166,26 @@ var BandwidthView = (function() {
var rows = [];
rows.push({
- title: 'Original (KB)',
- sessionValue: bytesToRoundedKilobytes_(sessionOriginal),
- historicValue: bytesToRoundedKilobytes_(historicOriginal)
+ title: 'Original (KB)',
+ sessionValue: bytesToRoundedKilobytes_(sessionOriginal),
+ historicValue: bytesToRoundedKilobytes_(historicOriginal)
});
rows.push({
- title: 'Received (KB)',
- sessionValue: bytesToRoundedKilobytes_(sessionReceived),
- historicValue: bytesToRoundedKilobytes_(historicReceived)
+ title: 'Received (KB)',
+ sessionValue: bytesToRoundedKilobytes_(sessionReceived),
+ historicValue: bytesToRoundedKilobytes_(historicReceived)
});
rows.push({
- title: 'Savings (KB)',
- sessionValue:
- bytesToRoundedKilobytes_(sessionOriginal - sessionReceived),
- historicValue:
- bytesToRoundedKilobytes_(historicOriginal - historicReceived)
+ title: 'Savings (KB)',
+ sessionValue:
+ bytesToRoundedKilobytes_(sessionOriginal - sessionReceived),
+ historicValue:
+ bytesToRoundedKilobytes_(historicOriginal - historicReceived)
});
rows.push({
- title: 'Savings (%)',
- sessionValue: getPercentSavings_(sessionOriginal, sessionReceived),
- historicValue: getPercentSavings_(historicOriginal,
- historicReceived)
+ title: 'Savings (%)',
+ sessionValue: getPercentSavings_(sessionOriginal, sessionReceived),
+ historicValue: getPercentSavings_(historicOriginal, historicReceived)
});
var tbody = $(BandwidthView.SAVINGS_TBODY_ID);
@@ -218,8 +217,8 @@ var BandwidthView = (function() {
if (event.phase == EventPhase.PHASE_BEGIN ||
event.phase == EventPhase.PHASE_END) {
actionText = actionText + ' (' +
- getKeyWithValue(EventPhase, event.phase)
- .replace('PHASE_', '') + ')';
+ getKeyWithValue(EventPhase, event.phase).replace('PHASE_', '') +
+ ')';
}
addTextNode(actionCell, actionText);
@@ -268,14 +267,15 @@ var BandwidthView = (function() {
}
if (hasBypassedProxy) {
- this.createEventTable_(this.last_bypass_.params,
- $(BandwidthView.BYPASS_STATE_ID));
+ this.createEventTable_(
+ this.last_bypass_.params, $(BandwidthView.BYPASS_STATE_ID));
}
- this.createEventTable_(this.data_reduction_proxy_config_,
- $(BandwidthView.PROXY_CONFIG_ID));
- setNodeDisplay($(BandwidthView.BYPASS_STATE_CONTAINER_ID),
- hasBypassedProxy);
+ this.createEventTable_(
+ this.data_reduction_proxy_config_,
+ $(BandwidthView.PROXY_CONFIG_ID));
+ setNodeDisplay(
+ $(BandwidthView.BYPASS_STATE_CONTAINER_ID), hasBypassedProxy);
}
},
@@ -329,8 +329,8 @@ var BandwidthView = (function() {
} else if (key == 'bypass_type') {
value = getKeyWithValue(DataReductionProxyBypassEventType, value);
} else if (key == 'bypass_action_type') {
- value = getKeyWithValue(DataReductionProxyBypassActionType,
- value);
+ value =
+ getKeyWithValue(DataReductionProxyBypassActionType, value);
} else if (key == 'expiration') {
value = timeutil.convertTimeTicksToDate(value);
}
@@ -361,4 +361,4 @@ var BandwidthView = (function() {
}
return BandwidthView;
-})();
+})();
« no previous file with comments | « netlog_viewer/netlog_viewer/alt_svc_view.js ('k') | netlog_viewer/netlog_viewer/browser_bridge.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698