2024-05-20 22:21:37 +02:00
|
|
|
diff --git chrome/browser/devtools/chrome_devtools_manager_delegate.cc chrome/browser/devtools/chrome_devtools_manager_delegate.cc
|
2024-11-14 23:07:03 +01:00
|
|
|
index 8c8d53b351c2f..c1fa3cd901335 100644
|
2024-05-20 22:21:37 +02:00
|
|
|
--- chrome/browser/devtools/chrome_devtools_manager_delegate.cc
|
|
|
|
+++ chrome/browser/devtools/chrome_devtools_manager_delegate.cc
|
2024-09-27 16:15:44 +02:00
|
|
|
@@ -15,6 +15,7 @@
|
2024-05-20 22:21:37 +02:00
|
|
|
#include "base/strings/utf_string_conversions.h"
|
|
|
|
#include "build/build_config.h"
|
|
|
|
#include "build/chromeos_buildflags.h"
|
|
|
|
+#include "cef/libcef/features/features.h"
|
|
|
|
#include "chrome/browser/browser_features.h"
|
|
|
|
#include "chrome/browser/devtools/chrome_devtools_session.h"
|
|
|
|
#include "chrome/browser/devtools/device/android_device_manager.h"
|
2024-09-27 16:15:44 +02:00
|
|
|
@@ -69,6 +70,10 @@
|
2024-05-20 22:21:37 +02:00
|
|
|
#include "ash/constants/ash_switches.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
|
|
+#include "cef/libcef/browser/chrome/extensions/chrome_extension_util.h"
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
using content::DevToolsAgentHost;
|
|
|
|
|
|
|
|
const char ChromeDevToolsManagerDelegate::kTypeApp[] = "app";
|
2024-11-14 23:07:03 +01:00
|
|
|
@@ -283,6 +288,12 @@ std::string ChromeDevToolsManagerDelegate::GetTargetType(
|
2024-05-20 22:21:37 +02:00
|
|
|
return DevToolsAgentHost::kTypePage;
|
|
|
|
}
|
|
|
|
|
|
|
|
+#if BUILDFLAG(ENABLE_CEF)
|
|
|
|
+ if (cef::IsAlloyContents(web_contents, /*primary_only=*/true)) {
|
|
|
|
+ return DevToolsAgentHost::kTypePage;
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
return DevToolsAgentHost::kTypeOther;
|
|
|
|
}
|
|
|
|
|