mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
cefsimple: Enable Chrome runtime by default (see #3685)
Run with `--disable-chrome-runtime` to use the Alloy runtime.
This commit is contained in:
@@ -59,13 +59,11 @@ int main(int argc, char* argv[]) {
|
||||
CefSettings settings;
|
||||
|
||||
#if !defined(DISABLE_ALLOY_BOOTSTRAP)
|
||||
// Use the CEF Chrome runtime if "--enable-chrome-runtime" is specified via
|
||||
// the command-line. Otherwise, use the CEF Alloy runtime. For more
|
||||
// information about CEF runtimes see
|
||||
// https://bitbucket.org/chromiumembedded/cef/wiki/Architecture.md#markdown-header-cef3
|
||||
if (command_line->HasSwitch("enable-chrome-runtime")) {
|
||||
settings.chrome_runtime = true;
|
||||
}
|
||||
// Use the CEF Chrome bootstrap unless "--disable-chrome-runtime" is specified
|
||||
// via the command-line. Otherwise, use the CEF Alloy bootstrap. The Alloy
|
||||
// bootstrap is deprecated and will be removed in ~M127. See
|
||||
// https://github.com/chromiumembedded/cef/issues/3685
|
||||
settings.chrome_runtime = !command_line->HasSwitch("disable-chrome-runtime");
|
||||
#endif
|
||||
|
||||
// When generating projects with CMake the CEF_USE_SANDBOX value will be defined
|
||||
|
Reference in New Issue
Block a user