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

Unified Diff: tracing/tracing/model/helpers/chrome_process_helper.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 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: tracing/tracing/model/helpers/chrome_process_helper.html
diff --git a/tracing/tracing/model/helpers/chrome_process_helper.html b/tracing/tracing/model/helpers/chrome_process_helper.html
index c86714d8b5a0d2ff8cab469a12d996c4796ad90d..f80f019b77337efc9d7373f42ebd69e301f7207e 100644
--- a/tracing/tracing/model/helpers/chrome_process_helper.html
+++ b/tracing/tracing/model/helpers/chrome_process_helper.html
@@ -27,8 +27,9 @@ tr.exportTo('tr.model.helpers', function() {
for (var i = 0; i < slices.length; i++) {
var slice = slices[i];
if (rangeOfInterest.intersectsExplicitRangeInclusive(
- slice.start, slice.end))
+ slice.start, slice.end)) {
slicesInFilterRange.push(slice);
+ }
}
return slicesInFilterRange;
}
@@ -79,10 +80,13 @@ tr.exportTo('tr.model.helpers', function() {
MAIN_RENDERING_STATS : IMPL_RENDERING_STATS);
var frameEvents = [];
- for (var event of this.process.getDescendantEvents())
- if (event.title === titleToGet)
- if (range.intersectsExplicitRangeInclusive(event.start, event.end))
+ for (var event of this.process.getDescendantEvents()) {
+ if (event.title === titleToGet) {
+ if (range.intersectsExplicitRangeInclusive(event.start, event.end)) {
frameEvents.push(event);
+ }
+ }
+ }
frameEvents.sort(function(a, b) {return a.start - b.start;});
return frameEvents;
« no previous file with comments | « tracing/tracing/model/helpers/chrome_model_helper.html ('k') | tracing/tracing/model/helpers/chrome_renderer_helper.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698