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

Unified Diff: tracing/tracing/ui/analysis/single_event_sub_view.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/ui/analysis/single_event_sub_view.html
diff --git a/tracing/tracing/ui/analysis/single_event_sub_view.html b/tracing/tracing/ui/analysis/single_event_sub_view.html
index f163c1750f3b6642b1d49b7152a63f70d62105fa..8c0e2b59dadf0a02429d97dcefd793b6a5e08592 100644
--- a/tracing/tracing/ui/analysis/single_event_sub_view.html
+++ b/tracing/tracing/ui/analysis/single_event_sub_view.html
@@ -70,8 +70,9 @@ Polymer({
},
set selection(selection) {
- if (selection.length !== 1)
+ if (selection.length !== 1) {
throw new Error('Only supports single slices');
+ }
this.setSelectionWithoutErrorChecks(selection);
},
@@ -115,23 +116,28 @@ Polymer({
getEventRowsHelper_: function(event) {
var rows = [];
- if (event.error)
+ if (event.error) {
rows.push({ name: 'Error', value: event.error });
+ }
- if (event.title)
+ if (event.title) {
rows.push({ name: 'Title', value: event.title });
+ }
- if (event.category)
+ if (event.category) {
rows.push({ name: 'Category', value: event.category });
+ }
if (event.model !== undefined) {
var ufc = event.model.getUserFriendlyCategoryFromEvent(event);
- if (ufc !== undefined)
+ if (ufc !== undefined) {
rows.push({ name: 'User Friendly Category', value: ufc });
+ }
}
- if (event.name)
+ if (event.name) {
rows.push({ name: 'Name', value: event.name });
+ }
rows.push({
name: 'Start',
@@ -262,8 +268,9 @@ Polymer({
},
getEventRows_: function(event) {
- if (this.isFlow)
+ if (this.isFlow) {
return this.getFlowEventRows_(event);
+ }
return this.getEventRowsHelper_(event);
},
@@ -323,10 +330,11 @@ Polymer({
var event = tr.b.getOnlyElement(this.currentSelection_);
var rows = this.getEventRows_(event);
- if (event.argsStripped)
+ if (event.argsStripped) {
rows.push({ name: 'Args', value: 'Stripped' });
- else
+ } else {
this.addArgsToRows_(rows, event.args);
+ }
this.addContextsToRows_(rows, event.contexts);
var customizeRowsEvent = new tr.b.Event('customize-rows');

Powered by Google App Engine
This is Rietveld 408576698