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. // Add logging for some common switches that the user may attempt to use.
static const char* kIgnoredSwitches[] = { static const char* kIgnoredSwitches[] = {
#if !defined(DISABLE_ALLOY_BOOTSTRAP) #if !defined(DISABLE_ALLOY_BOOTSTRAP)
switches::kDisableChromeRuntime,
switches::kEnableChromeRuntime, switches::kEnableChromeRuntime,
#endif #endif
switches::kMultiThreadedMessageLoop, switches::kMultiThreadedMessageLoop,

View File

@@ -79,7 +79,7 @@ MainContextImpl::MainContextImpl(CefRefPtr<CefCommandLine> command_line,
#if !defined(DISABLE_ALLOY_BOOTSTRAP) #if !defined(DISABLE_ALLOY_BOOTSTRAP)
// Enable Chrome runtime bootstrap. See issue #2969 for details. // Enable Chrome runtime bootstrap. See issue #2969 for details.
use_chrome_bootstrap_ = use_chrome_bootstrap_ =
command_line_->HasSwitch(switches::kEnableChromeRuntime); !command_line_->HasSwitch(switches::kDisableChromeRuntime);
#endif #endif
// Whether the Views framework will be used. // 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 kCRLSetsPath[] = "crl-sets-path";
const char kNoActivate[] = "no-activate"; const char kNoActivate[] = "no-activate";
#if !defined(DISABLE_ALLOY_BOOTSTRAP) #if !defined(DISABLE_ALLOY_BOOTSTRAP)
const char kDisableChromeRuntime[] = "disable-chrome-runtime";
const char kEnableChromeRuntime[] = "enable-chrome-runtime"; const char kEnableChromeRuntime[] = "enable-chrome-runtime";
#endif #endif
const char kShowChromeToolbar[] = "show-chrome-toolbar"; const char kShowChromeToolbar[] = "show-chrome-toolbar";

View File

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