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 69ce47ae4c
commit 14bd14567f
4 changed files with 4 additions and 1 deletions

View File

@ -69,6 +69,7 @@ class ClientBrowserDelegate : public ClientAppBrowser::Delegate {
const CefString& current_directory) override {
// Add logging for some common switches that the user may attempt to use.
static const char* kIgnoredSwitches[] = {
switches::kDisableChromeRuntime,
switches::kEnableChromeRuntime,
switches::kMultiThreadedMessageLoop,
switches::kOffScreenRenderingEnabled,

View File

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

View File

@ -46,6 +46,7 @@ const char kCRLSetsPath[] = "crl-sets-path";
const char kLoadExtension[] = "load-extension";
const char kNoActivate[] = "no-activate";
const char kEnableChromeRuntime[] = "enable-chrome-runtime";
const char kDisableChromeRuntime[] = "disable-chrome-runtime";
const char kShowChromeToolbar[] = "show-chrome-toolbar";
const char kInitialShowState[] = "initial-show-state";
const char kUseDefaultPopup[] = "use-default-popup";

View File

@ -40,6 +40,7 @@ extern const char kCRLSetsPath[];
extern const char kLoadExtension[];
extern const char kNoActivate[];
extern const char kEnableChromeRuntime[];
extern const char kDisableChromeRuntime[];
extern const char kShowChromeToolbar[];
extern const char kInitialShowState[];
extern const char kUseDefaultPopup[];