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

Unified Diff: Source/devtools/front_end/network/NetworkPanel.js

Issue 1295523003: DevTools: do not use arrow functions unless they are in stable. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | Source/devtools/front_end/ui/KeyboardShortcut.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/network/NetworkPanel.js
diff --git a/Source/devtools/front_end/network/NetworkPanel.js b/Source/devtools/front_end/network/NetworkPanel.js
index e6901ebec15f81073d09eead5bab08c0d857367c..dc9a58436164fb3ded2e5c854409f7f6d1998613 100644
--- a/Source/devtools/front_end/network/NetworkPanel.js
+++ b/Source/devtools/front_end/network/NetworkPanel.js
@@ -204,7 +204,17 @@ WebInspector.NetworkPanel.prototype = {
var calculator = this._networkLogView.timeCalculator();
this._filmStripView.setModel(filmStripModel, calculator.minimumBoundary() * 1000, calculator.boundarySpan() * 1000);
this._networkOverview.setFilmStripModel(filmStripModel);
- var timestamps = filmStripModel.frames().map((frame) => frame.timestamp / 1000);
+ var timestamps = filmStripModel.frames().map(mapTimestamp);
+
+ /**
+ * @param {!WebInspector.FilmStripModel.Frame} frame
+ * @return {number}
+ */
+ function mapTimestamp(frame)
+ {
+ return frame.timestamp / 1000;
+ }
+
this._networkLogView.addFilmStripFrames(timestamps);
},
« no previous file with comments | « no previous file | Source/devtools/front_end/ui/KeyboardShortcut.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698