2022-07-21 19:26:10 +02:00
|
|
|
diff --git chrome/utility/chrome_content_utility_client.cc chrome/utility/chrome_content_utility_client.cc
|
2024-02-22 19:36:15 +01:00
|
|
|
index e070f862c3492..fdf448397fb3e 100644
|
2022-07-21 19:26:10 +02:00
|
|
|
--- chrome/utility/chrome_content_utility_client.cc
|
|
|
|
+++ chrome/utility/chrome_content_utility_client.cc
|
2023-01-30 18:43:54 +01:00
|
|
|
@@ -13,6 +13,7 @@
|
2022-07-21 19:26:10 +02:00
|
|
|
#include "base/path_service.h"
|
2023-01-30 18:43:54 +01:00
|
|
|
#include "base/task/single_thread_task_runner.h"
|
2022-07-21 19:26:10 +02:00
|
|
|
#include "build/build_config.h"
|
|
|
|
+#include "cef/libcef/features/runtime.h"
|
|
|
|
#include "chrome/common/chrome_paths.h"
|
|
|
|
#include "chrome/common/profiler/thread_profiler.h"
|
|
|
|
#include "chrome/common/profiler/thread_profiler_configuration.h"
|
2024-02-22 19:36:15 +01:00
|
|
|
@@ -61,7 +62,8 @@ void ChromeContentUtilityClient::UtilityThreadStarted() {
|
2022-07-21 19:26:10 +02:00
|
|
|
command_line->GetSwitchValueASCII(switches::kProcessType);
|
|
|
|
// An in-process utility thread may run in other processes, only set up
|
|
|
|
// collector in a utility process.
|
|
|
|
- if (process_type == switches::kUtilityProcess) {
|
|
|
|
+ if (process_type == switches::kUtilityProcess &&
|
|
|
|
+ !cef::IsAlloyRuntimeEnabled()) {
|
|
|
|
// The HeapProfilerController should have been created in
|
|
|
|
// ChromeMainDelegate::PostEarlyInitialization.
|
2022-09-26 21:30:45 +02:00
|
|
|
using HeapProfilerController = heap_profiling::HeapProfilerController;
|