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

Unified Diff: tracing/tracing/ui/tracks/model_track.html

Issue 2955053002: Remove tr.b.identity. (Closed)
Patch Set: Created 3 years, 6 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 | « tracing/tracing/ui/analysis/memory_dump_overview_pane_test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/tracks/model_track.html
diff --git a/tracing/tracing/ui/tracks/model_track.html b/tracing/tracing/ui/tracks/model_track.html
index c58285e9b9f2ec9a1f8220e0752d4b904f9cabf8..a999099832701910e3a16c53e98b5b7ec76f7d7a 100644
--- a/tracing/tracing/ui/tracks/model_track.html
+++ b/tracing/tracing/ui/tracks/model_track.html
@@ -59,8 +59,8 @@ tr.exportTo('tr.ui.tracks', function() {
if (times.length === 0) return [];
// Find the lowest and highest index within the viewport.
- const lowIndex =
- tr.b.math.findLowIndexInSortedArray(times, tr.b.identity, minTime);
+ const lowIndex = tr.b.math.findLowIndexInSortedArray(
+ times, (x => x), minTime);
let highIndex = lowIndex - 1;
while (times[highIndex + 1] <= maxTime) {
highIndex++;
« no previous file with comments | « tracing/tracing/ui/analysis/memory_dump_overview_pane_test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698