forked from pool/nodejs-electron
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
|
--- src/components/permissions/permission_context_base.cc.orig 2025-05-22 20:15:04.346176805 +0200
|
||
|
+++ src/components/permissions/permission_context_base.cc 2025-05-24 13:09:21.758872333 +0200
|
||
|
@@ -26,6 +26,7 @@
|
||
|
#include "components/content_settings/core/common/content_settings_pattern.h"
|
||
|
#include "components/content_settings/core/common/content_settings_types.h"
|
||
|
#include "components/content_settings/core/common/features.h"
|
||
|
+#include "components/guest_view/buildflags/buildflags.h"
|
||
|
#include "components/permissions/features.h"
|
||
|
#include "components/permissions/permission_context_base.h"
|
||
|
#include "components/permissions/permission_decision_auto_blocker.h"
|
||
|
@@ -46,7 +47,7 @@
|
||
|
#include "services/network/public/mojom/permissions_policy/permissions_policy_feature.mojom.h"
|
||
|
#include "url/gurl.h"
|
||
|
|
||
|
-#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS)
|
||
|
+#if BUILDFLAG(ENABLE_GUEST_VIEW)
|
||
|
#include "components/guest_view/browser/guest_view_base.h"
|
||
|
#endif
|
||
|
|
||
|
@@ -316,7 +317,7 @@ content::PermissionResult PermissionCont
|
||
|
}
|
||
|
}
|
||
|
|
||
|
-#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS)
|
||
|
+#if BUILDFLAG(ENABLE_GUEST_VIEW)
|
||
|
guest_view::GuestViewBase* guest =
|
||
|
guest_view::GuestViewBase::FromRenderFrameHost(render_frame_host);
|
||
|
if (guest) {
|