cefclient: Enable Chrome runtime by default (see #3685)

Run with `--disable-chrome-runtime` to use the Alloy runtime.
This commit is contained in:
Marshall Greenblatt 2024-05-09 10:20:05 -04:00
parent 8283317cb1
commit e7626b2df6
4 changed files with 4 additions and 1 deletions

View File

@ -69,6 +69,7 @@ class ClientBrowserDelegate : public ClientAppBrowser::Delegate {
// Add logging for some common switches that the user may attempt to use.
static const char* kIgnoredSwitches[] = {
#if !defined(DISABLE_ALLOY_BOOTSTRAP)
switches::kDisableChromeRuntime,
switches::kEnableChromeRuntime,
#endif
switches::kMultiThreadedMessageLoop,

View File

@ -79,7 +79,7 @@ MainContextImpl::MainContextImpl(CefRefPtr<CefCommandLine> command_line,
#if !defined(DISABLE_ALLOY_BOOTSTRAP)
// Enable Chrome runtime bootstrap. See issue #2969 for details.
use_chrome_bootstrap_ =
command_line_->HasSwitch(switches::kEnableChromeRuntime);
!command_line_->HasSwitch(switches::kDisableChromeRuntime);
#endif
// Whether the Views framework will be used.

View File

@ -45,6 +45,7 @@ const char kSslClientCertificate[] = "ssl-client-certificate";
const char kCRLSetsPath[] = "crl-sets-path";
const char kNoActivate[] = "no-activate";
#if !defined(DISABLE_ALLOY_BOOTSTRAP)
const char kDisableChromeRuntime[] = "disable-chrome-runtime";
const char kEnableChromeRuntime[] = "enable-chrome-runtime";
#endif
const char kShowChromeToolbar[] = "show-chrome-toolbar";

View File

@ -39,6 +39,7 @@ extern const char kSslClientCertificate[];
extern const char kCRLSetsPath[];
extern const char kNoActivate[];
#if !defined(DISABLE_ALLOY_BOOTSTRAP)
extern const char kDisableChromeRuntime[];
extern const char kEnableChromeRuntime[];
#endif
extern const char kShowChromeToolbar[];