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

Unified Diff: tracing/tracing/ui/analysis/analysis_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/analysis_view.html
diff --git a/tracing/tracing/ui/analysis/analysis_view.html b/tracing/tracing/ui/analysis/analysis_view.html
index 1d4794458feb5d80a341d9428ed75bc0c3666f39..525a3ca970e3af677844d50f38a43a8eb17b2dde 100644
--- a/tracing/tracing/ui/analysis/analysis_view.html
+++ b/tracing/tracing/ui/analysis/analysis_view.html
@@ -76,19 +76,21 @@ using custom elements specialized for different event types.
/** Returns the label that goes next to the list of tabs. */
function getTabStripLabel(numEvents) {
- if (numEvents === 0)
+ if (numEvents === 0) {
return 'Nothing selected. Tap stuff.';
- else if (numEvents === 1)
+ } else if (numEvents === 1) {
return '1 item selected.';
+ }
return numEvents + ' items selected.';
}
function createSubView(subViewTypeInfo, selection) {
var tagName;
- if (selection.length === 1)
+ if (selection.length === 1) {
tagName = subViewTypeInfo.singleTagName;
- else
+ } else {
tagName = subViewTypeInfo.multiTagName;
+ }
if (tagName === undefined) {
throw new Error('No view registered for ' +
@@ -97,10 +99,11 @@ using custom elements specialized for different event types.
var subView = document.createElement(tagName);
var title;
- if (selection.length === 1)
+ if (selection.length === 1) {
title = subViewTypeInfo.singleTitle;
- else
+ } else {
title = subViewTypeInfo.multiTitle;
+ }
title += ' (' + selection.length + ')';
subView.tabLabel = title;
@@ -159,8 +162,9 @@ using custom elements specialized for different event types.
},
onSelectionChanged_: function(e) {
- if (this.lastSelection_ && this.selection.equals(this.lastSelection_))
+ if (this.lastSelection_ && this.selection.equals(this.lastSelection_)) {
return;
+ }
this.lastSelection_ = this.selection;
this.tallMode = false;
@@ -194,8 +198,9 @@ using custom elements specialized for different event types.
/** Changes the highlighted related events if possible. */
maybeChangeRelatedEvents_: function(events) {
- if (this.brushingStateController)
+ if (this.brushingStateController) {
this.brushingStateController.changeAnalysisViewRelatedEvents(events);
+ }
}
});
})();
« no previous file with comments | « tracing/tracing/ui/analysis/analysis_sub_view.html ('k') | tracing/tracing/ui/analysis/container_memory_dump_sub_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698