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

Unified Diff: tracing/tracing/model/device.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/cpu_test.html ('k') | tracing/tracing/model/device_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/model/device.html
diff --git a/tracing/tracing/model/device.html b/tracing/tracing/model/device.html
index 20b81b21786bcd33833cb1adb9a2a30f085bb53e..5e07522e55bea68b94a3a025e388abbfeb90d511 100644
--- a/tracing/tracing/model/device.html
+++ b/tracing/tracing/model/device.html
@@ -24,8 +24,9 @@ tr.exportTo('tr.model', function() {
* @extends {tr.model.EventContainer}
*/
function Device(model) {
- if (!model)
+ if (!model) {
throw new Error('Must provide a model.');
+ }
tr.model.EventContainer.call(this);
@@ -98,18 +99,21 @@ tr.exportTo('tr.model', function() {
child.shiftTimestampsForward(amount);
}
- for (var i = 0; i < this.vSyncTimestamps_.length; i++)
+ for (var i = 0; i < this.vSyncTimestamps_.length; i++) {
this.vSyncTimestamps_[i] += amount;
+ }
},
addCategoriesToDict: function(categoriesDict) {
},
childEventContainers: function* () {
- if (this.powerSeries_)
+ if (this.powerSeries_) {
yield this.powerSeries_;
- if (this.cpuUsageSeries_)
+ }
+ if (this.cpuUsageSeries_) {
yield this.cpuUsageSeries_;
+ }
}
};
« no previous file with comments | « tracing/tracing/model/cpu_test.html ('k') | tracing/tracing/model/device_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698