From 68de75ff24e794b24e368f80392636d82288ebcf Mon Sep 17 00:00:00 2001 From: George Kottackal Date: Tue, 7 Nov 2023 12:05:47 +0000 Subject: [PATCH] WIP:Disable extension subsystem at runtime Change-Id: I85219c05180ff3515e55d94e6754d0675d83a652 --- libcef/common/extensions/extensions_util.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcef/common/extensions/extensions_util.cc b/libcef/common/extensions/extensions_util.cc index 6a0dc536b..dfdfb9d60 100644 --- a/libcef/common/extensions/extensions_util.cc +++ b/libcef/common/extensions/extensions_util.cc @@ -12,9 +12,13 @@ namespace extensions { bool ExtensionsEnabled() { +#if !BUILDFLAG(IS_OHOS) static bool enabled = !base::CommandLine::ForCurrentProcess()->HasSwitch( switches::kDisableExtensions); return enabled; +#else + return false; +#endif } bool PdfExtensionEnabled() { -- Gitee