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

Unified Diff: tracing/tracing/model/helpers/android_model_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/android_model_helper.html
diff --git a/tracing/tracing/model/helpers/android_model_helper.html b/tracing/tracing/model/helpers/android_model_helper.html
index ab0e1b3b13faf3d7036291b7f2e7b718692de9a5..6eb9c4bae2cc3379eccc7b5e2594e474622a7617 100644
--- a/tracing/tracing/model/helpers/android_model_helper.html
+++ b/tracing/tracing/model/helpers/android_model_helper.html
@@ -37,12 +37,12 @@ tr.exportTo('tr.model.helpers', function() {
};
function iterateImportantThreadSlices(thread, important, callback) {
- if (!thread)
- return;
+ if (!thread) return;
thread.sliceGroup.slices.forEach(function(slice) {
- if (slice.title in important)
+ if (slice.title in important) {
callback(slice);
+ }
});
}
@@ -64,8 +64,9 @@ tr.exportTo('tr.model.helpers', function() {
model.getAllProcesses().forEach(function(process) {
var app = AndroidApp.createForProcessIfPossible(
process, this.surfaceFlinger);
- if (app)
+ if (app) {
this.apps.push(app);
+ }
}, this);
}
« no previous file with comments | « tracing/tracing/model/helpers/android_app.html ('k') | tracing/tracing/model/helpers/android_model_helper_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698