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

Unified Diff: tracing/tracing/model/helpers/chrome_gpu_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_gpu_helper.html
diff --git a/tracing/tracing/model/helpers/chrome_gpu_helper.html b/tracing/tracing/model/helpers/chrome_gpu_helper.html
index 641d96960c11b1bfa47d37dd2933d51781780acb..dd87103f662793267f8031170397bd130051a4e5 100644
--- a/tracing/tracing/model/helpers/chrome_gpu_helper.html
+++ b/tracing/tracing/model/helpers/chrome_gpu_helper.html
@@ -16,8 +16,9 @@ tr.exportTo('tr.model.helpers', function() {
function ChromeGpuHelper(modelHelper, process) {
tr.model.helpers.ChromeProcessHelper.call(this, modelHelper, process);
this.mainThread_ = process.findAtMostOneThreadNamed('CrGpuMain');
- if (!process.name)
+ if (!process.name) {
process.name = ChromeGpuHelper.PROCESS_NAME;
+ }
}
ChromeGpuHelper.PROCESS_NAME = 'GPU Process';
@@ -25,8 +26,9 @@ tr.exportTo('tr.model.helpers', function() {
ChromeGpuHelper.isGpuProcess = function(process) {
// In some android builds the GPU thread is not in a separate process.
if (process.findAtMostOneThreadNamed('CrBrowserMain') ||
- process.findAtMostOneThreadNamed('CrRendererMain'))
+ process.findAtMostOneThreadNamed('CrRendererMain')) {
return false;
+ }
return process.findAtMostOneThreadNamed('CrGpuMain');
};
« no previous file with comments | « tracing/tracing/model/helpers/chrome_browser_helper.html ('k') | tracing/tracing/model/helpers/chrome_model_helper.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698