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

Unified Diff: tracing/tracing/model/helpers/chrome_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/chrome_model_helper.html
diff --git a/tracing/tracing/model/helpers/chrome_model_helper.html b/tracing/tracing/model/helpers/chrome_model_helper.html
index 47e435f32b0855ae9b6d9715874469557d38536a..275af7cb9396d4f36397bd20d8998319d31765ab 100644
--- a/tracing/tracing/model/helpers/chrome_model_helper.html
+++ b/tracing/tracing/model/helpers/chrome_model_helper.html
@@ -31,8 +31,7 @@ tr.exportTo('tr.model.helpers', function() {
function findChromeGpuProcess(model) {
var gpuProcesses = model.getAllProcesses(
tr.model.helpers.ChromeGpuHelper.isGpuProcess);
- if (gpuProcesses.length !== 1)
- return undefined;
+ if (gpuProcesses.length !== 1) return undefined;
return gpuProcesses[0];
}
@@ -69,10 +68,8 @@ tr.exportTo('tr.model.helpers', function() {
ChromeModelHelper.guid = tr.b.GUID.allocateSimple();
ChromeModelHelper.supportsModel = function(model) {
- if (findChromeBrowserProcesses(model).length)
- return true;
- if (findChromeRenderProcesses(model).length)
- return true;
+ if (findChromeBrowserProcesses(model).length) return true;
+ if (findChromeRenderProcesses(model).length) return true;
return false;
};
@@ -92,8 +89,7 @@ tr.exportTo('tr.model.helpers', function() {
// TODO: Make all users of ChromeModelHelper support multiple browsers and
// remove this getter (see #2119).
get browserProcess() {
- if (this.browserHelper === undefined)
- return undefined;
+ if (this.browserHelper === undefined) return undefined;
return this.browserHelper.process;
},
« no previous file with comments | « tracing/tracing/model/helpers/chrome_gpu_helper.html ('k') | tracing/tracing/model/helpers/chrome_process_helper.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698