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

Unified Diff: tracing/tracing/extras/chrome/chrome_user_friendly_category_driver.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/chrome/chrome_user_friendly_category_driver.html
diff --git a/tracing/tracing/extras/chrome/chrome_user_friendly_category_driver.html b/tracing/tracing/extras/chrome/chrome_user_friendly_category_driver.html
index 98e38068464a162f97fca15ac1a105108d1e7b06..1cdc29bb0710131f4ee6857d2bc9cd3949a794e0 100644
--- a/tracing/tracing/extras/chrome/chrome_user_friendly_category_driver.html
+++ b/tracing/tracing/extras/chrome/chrome_user_friendly_category_driver.html
@@ -167,8 +167,9 @@ tr.exportTo('tr.e.chrome', function() {
USER_FRIENDLY_CATEGORY_FOR_TITLE.get(event.title);
if (userFriendlyCategory) {
if (userFriendlyCategory === SAME_AS_PARENT) {
- if (event.parentSlice)
+ if (event.parentSlice) {
return ChromeUserFriendlyCategoryDriver.fromEvent(event.parentSlice);
+ }
} else {
return userFriendlyCategory;
}
@@ -179,8 +180,9 @@ tr.exportTo('tr.e.chrome', function() {
var eventCategory = eventCategoryParts[i];
userFriendlyCategory = USER_FRIENDLY_CATEGORY_FOR_EVENT_CATEGORY[
eventCategory];
- if (userFriendlyCategory)
+ if (userFriendlyCategory) {
return userFriendlyCategory;
+ }
}
return 'other';
@@ -192,8 +194,7 @@ tr.exportTo('tr.e.chrome', function() {
ChromeUserFriendlyCategoryDriver.ALL_TITLES = ['other'];
for (var category in TITLES_FOR_USER_FRIENDLY_CATEGORY) {
- if (category === SAME_AS_PARENT)
- continue;
+ if (category === SAME_AS_PARENT) continue;
ChromeUserFriendlyCategoryDriver.ALL_TITLES.push(category);
}
for (var category of tr.b.dictionaryValues(
@@ -204,8 +205,9 @@ tr.exportTo('tr.e.chrome', function() {
// Prime the color generator by iterating through all UFCs in alphabetical
// order.
- for (var category of ChromeUserFriendlyCategoryDriver.ALL_TITLES)
+ for (var category of ChromeUserFriendlyCategoryDriver.ALL_TITLES) {
ChromeUserFriendlyCategoryDriver.getColor(category);
+ }
return {
ChromeUserFriendlyCategoryDriver,
« no previous file with comments | « tracing/tracing/extras/chrome/chrome_auditor.html ('k') | tracing/tracing/extras/chrome/estimated_input_latency.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698