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

Unified Diff: tracing/tracing/extras/chrome/chrome_browser_helper.html

Issue 1290323003: Create a mapper to compute browser and renderer startup durations. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Answered Nat, added tests, added SkipValue. Created 5 years, 4 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_browser_helper.html
diff --git a/tracing/tracing/extras/chrome/chrome_browser_helper.html b/tracing/tracing/extras/chrome/chrome_browser_helper.html
index 46b00bd5c9189e959a57a7a859a8f323d4b9407c..b7ee72c1b0dfdc4775022c9e509f56d93ab57172 100644
--- a/tracing/tracing/extras/chrome/chrome_browser_helper.html
+++ b/tracing/tracing/extras/chrome/chrome_browser_helper.html
@@ -20,9 +20,11 @@ tr.exportTo('tr.e.audits', function() {
}
ChromeBrowserHelper.isBrowserProcess = function(process) {
- if (!process.findAtMostOneThreadNamed('CrBrowserMain'))
- return false;
- return true;
+ return !!process.findAtMostOneThreadNamed('CrBrowserMain');
+ };
+
+ ChromeBrowserHelper.isRendererProcess = function(process) {
nduca 2015/08/14 22:28:49 you'll have to use ChromeRendererHelper for this.
beaudoin 2015/08/18 16:16:54 Done.
+ return !!process.findAtMostOneThreadNamed('CrRendererMain');
};
ChromeBrowserHelper.prototype = {

Powered by Google App Engine
This is Rietveld 408576698