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

Unified Diff: tracing/tracing/ui/tracks/thread_track.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
« no previous file with comments | « tracing/tracing/ui/tracks/stacked_bars_track.html ('k') | tracing/tracing/ui/tracks/track.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/tracks/thread_track.html
diff --git a/tracing/tracing/ui/tracks/thread_track.html b/tracing/tracing/ui/tracks/thread_track.html
index 262aebf13fa2bf9079223026c4ff08dfcdcb43ee..003938d6299ed1d707474c94a128ca1972d5945b 100644
--- a/tracing/tracing/ui/tracks/thread_track.html
+++ b/tracing/tracing/ui/tracks/thread_track.html
@@ -71,14 +71,14 @@ tr.exportTo('tr.ui.tracks', function() {
updateContents_: function() {
this.detach();
- if (!this.thread_)
- return;
+ if (!this.thread_) return;
this.heading_.heading = this.thread_.userFriendlyName;
this.heading_.tooltip = this.thread_.userFriendlyDetails;
- if (this.thread_.asyncSliceGroup.length)
+ if (this.thread_.asyncSliceGroup.length) {
this.appendAsyncSliceTracks_();
+ }
this.appendThreadSamplesTracks_();
@@ -117,19 +117,22 @@ tr.exportTo('tr.ui.tracks', function() {
var title = subGroup.slices[0].viewSubGroupTitle;
asyncTrack.group = subGroup;
asyncTrack.heading = title;
- if (asyncTrack.hasVisibleContent)
+ if (asyncTrack.hasVisibleContent) {
Polymer.dom(this).appendChild(asyncTrack);
+ }
}, this);
},
appendThreadSamplesTracks_: function() {
var threadSamples = this.thread_.samples;
- if (threadSamples === undefined || threadSamples.length === 0)
+ if (threadSamples === undefined || threadSamples.length === 0) {
return;
+ }
var samplesByTitle = {};
threadSamples.forEach(function(sample) {
- if (samplesByTitle[sample.title] === undefined)
+ if (samplesByTitle[sample.title] === undefined) {
samplesByTitle[sample.title] = [];
+ }
samplesByTitle[sample.title].push(sample);
});
« no previous file with comments | « tracing/tracing/ui/tracks/stacked_bars_track.html ('k') | tracing/tracing/ui/tracks/track.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698