Skip to content

Commit 75217b7

Browse files
author
Gediminas Veiverys
committed
Detect more types of chromium processes
1 parent d846866 commit 75217b7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/Core/Chromium/ChromiumProcess.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ public ProcessCategory Category {
8686
if (file.Equals("delegate_execute.exe", StringComparison.CurrentCultureIgnoreCase))
8787
return ProcessCategory.DelegateExecute;
8888
else if (file.Equals("chrome.exe", StringComparison.CurrentCultureIgnoreCase)) {
89-
if (_commandLine.Contains("--type=renderer"))
89+
if (_commandLine.Contains("--extension-process"))
90+
return ProcessCategory.Extension;
91+
else if (_commandLine.Contains("--type=renderer"))
9092
return ProcessCategory.Renderer;
9193
else if (_commandLine.Contains("--type=plugin"))
9294
return ProcessCategory.Plugin;
@@ -100,6 +102,10 @@ public ProcessCategory Category {
100102
return ProcessCategory.PpapiBroker;
101103
else if (_commandLine.Any(arg => arg.StartsWith("-ServerName")))
102104
return ProcessCategory.MetroViewer;
105+
else if (_commandLine.Contains("--type=crashpad-handler"))
106+
return ProcessCategory.Crashpad;
107+
else if (_commandLine.Contains("--type=utility"))
108+
return ProcessCategory.Utility;
103109
else
104110
return ProcessCategory.Browser;
105111
} else

src/Core/Chromium/ProcessCategory.cs

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ public enum ProcessCategory {
1414
DelegateExecute,
1515
MetroViewer,
1616
Service,
17+
Crashpad,
18+
Utility,
19+
Extension,
1720
Other
1821
}
1922

0 commit comments

Comments
 (0)