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

Unified Diff: tracing/tracing/model/async_slice.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/model/annotation.html ('k') | tracing/tracing/model/async_slice_group.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/async_slice.html
diff --git a/tracing/tracing/model/async_slice.html b/tracing/tracing/model/async_slice.html
index 38bd3a58a77d1b98634994dec2da88b1bc438a3a..b6966f6b276010a7a1804c4c58af410f76a57030 100644
--- a/tracing/tracing/model/async_slice.html
+++ b/tracing/tracing/model/async_slice.html
@@ -57,14 +57,17 @@ tr.exportTo('tr.model', function() {
// be topLevel. All legacy async events are toplevel by definition.
this.isTopLevel = (opt_isTopLevel === true);
- if (opt_cpuStart !== undefined)
+ if (opt_cpuStart !== undefined) {
this.cpuStart = opt_cpuStart;
+ }
- if (opt_cpuDuration !== undefined)
+ if (opt_cpuDuration !== undefined) {
this.cpuDuration = opt_cpuDuration;
+ }
- if (opt_argsStripped !== undefined)
+ if (opt_argsStripped !== undefined) {
this.argsStripped = opt_argsStripped;
+ }
}
AsyncSlice.prototype = {
@@ -82,8 +85,9 @@ tr.exportTo('tr.model', function() {
this.parentContainer_ = parentContainer;
for (var i = 0; i < this.subSlices.length; i++) {
var subSlice = this.subSlices[i];
- if (subSlice.parentContainer === undefined)
+ if (subSlice.parentContainer === undefined) {
subSlice.parentContainer = parentContainer;
+ }
}
},
@@ -107,17 +111,18 @@ tr.exportTo('tr.model', function() {
yield this;
return;
}
- for (var s of this.subSlices)
+ for (var s of this.subSlices) {
yield* s.findTopmostSlicesRelativeToThisSlice(eventPredicate);
+ }
},
findDescendentSlice: function(targetTitle) {
- if (!this.subSlices)
- return undefined;
+ if (!this.subSlices) return undefined;
for (var i = 0; i < this.subSlices.length; i++) {
- if (this.subSlices[i].title === targetTitle)
+ if (this.subSlices[i].title === targetTitle) {
return this.subSlices[i];
+ }
var slice = this.subSlices[i].findDescendentSlice(targetTitle);
if (slice) return slice;
}
@@ -125,10 +130,12 @@ tr.exportTo('tr.model', function() {
},
enumerateAllDescendents: function* () {
- for (var slice of this.subSlices)
+ for (var slice of this.subSlices) {
yield slice;
- for (var slice of this.subSlices)
+ }
+ for (var slice of this.subSlices) {
yield* slice.enumerateAllDescendents();
+ }
},
compareTo: function(that) {
« no previous file with comments | « tracing/tracing/model/annotation.html ('k') | tracing/tracing/model/async_slice_group.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698