mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-16 12:10:41 +01:00
cefclient: Enable Chrome runtime by default (see #3685)
Run with `--disable-chrome-runtime` to use the Alloy runtime.
This commit is contained in:
parent
69ce47ae4c
commit
14bd14567f
@ -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,
|
||||
|
@ -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);
|
||||
|
@ -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";
|
||||
|
@ -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[];
|
||||
|
Loading…
x
Reference in New Issue
Block a user