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

Unified Diff: tracing/tracing/extras/importer/linux_perf/android_parser.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/extras/importer/linux_perf/android_parser.html
diff --git a/tracing/tracing/extras/importer/linux_perf/android_parser.html b/tracing/tracing/extras/importer/linux_perf/android_parser.html
index 14660928d73458e7fae8b007e36aa1557a6e6ec6..0407db738a9f03ba7a24a600b74e11527ee07502 100644
--- a/tracing/tracing/extras/importer/linux_perf/android_parser.html
+++ b/tracing/tracing/extras/importer/linux_perf/android_parser.html
@@ -41,8 +41,9 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
var argsArray = argsString.split(';');
for (var i = 0; i < argsArray.length; ++i) {
var parts = argsArray[i].split('=');
- if (parts[0])
+ if (parts[0]) {
args[parts.shift()] = parts.join('=');
+ }
}
}
return args;
@@ -108,8 +109,9 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
var title = eventData[2];
var args = parseArgs(eventData[3]);
var category = eventData[4];
- if (category === undefined)
+ if (category === undefined) {
category = 'android';
+ }
var thread = this.model_.getOrCreateProcess(ppid)
.getOrCreateThread(pid);
@@ -163,8 +165,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
var name = eventData[2];
var value = parseInt(eventData[3]);
var category = eventData[4];
- if (category === undefined)
- category = 'android';
+ if (category === undefined) category = 'android';
var ctr = this.model_.getOrCreateProcess(ppid)
.getOrCreateCounter(category, name);
@@ -187,8 +188,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
var cookie = parseInt(eventData[3]);
var args = parseArgs(eventData[4]);
var category = eventData[5];
- if (category === undefined)
- category = 'android';
+ if (category === undefined) category = 'android';
var thread = this.model_.getOrCreateProcess(ppid)
@@ -209,8 +209,7 @@ tr.exportTo('tr.e.importer.linux_perf', function() {
var cookie = parseInt(eventData[3]);
var args = parseArgs(eventData[4]);
var category = eventData[5];
- if (category === undefined)
- category = 'android';
+ if (category === undefined) category = 'android';
var thread = this.model_.getOrCreateProcess(ppid)
.getOrCreateThread(pid);
« no previous file with comments | « tracing/tracing/extras/importer/gzip_importer_test.html ('k') | tracing/tracing/extras/importer/linux_perf/binder_parser.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698