From 9229cdd0eb1549fbbba091acb938997fd6f44aba Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Mon, 9 Jul 2018 13:31:32 -0400 Subject: [PATCH] Remove CefSettings.single_process. This mode is not supported and CefSettings makes it too easy to enable. The command-line flag still exists. --- include/internal/cef_types.h | 8 -------- include/internal/cef_types_wrappers.h | 1 - libcef/common/main_delegate.cc | 3 --- 3 files changed, 12 deletions(-) diff --git a/include/internal/cef_types.h b/include/internal/cef_types.h index 7f38957c0..5bac44a84 100644 --- a/include/internal/cef_types.h +++ b/include/internal/cef_types.h @@ -151,14 +151,6 @@ typedef struct _cef_settings_t { /// size_t size; - /// - // Set to true (1) to use a single process for the browser and renderer. This - // run mode is not officially supported by Chromium and is less stable than - // the multi-process default. Also configurable using the "single-process" - // command-line switch. - /// - int single_process; - /// // Set to true (1) to disable the sandbox for sub-processes. See // cef_sandbox_win.h for requirements to enable the sandbox on Windows. Also diff --git a/include/internal/cef_types_wrappers.h b/include/internal/cef_types_wrappers.h index 147926e90..bb539fe00 100644 --- a/include/internal/cef_types_wrappers.h +++ b/include/internal/cef_types_wrappers.h @@ -539,7 +539,6 @@ struct CefSettingsTraits { static inline void set(const struct_type* src, struct_type* target, bool copy) { - target->single_process = src->single_process; target->no_sandbox = src->no_sandbox; cef_string_set(src->browser_subprocess_path.str, src->browser_subprocess_path.length, diff --git a/libcef/common/main_delegate.cc b/libcef/common/main_delegate.cc index f0043a40a..dc4641803 100644 --- a/libcef/common/main_delegate.cc +++ b/libcef/common/main_delegate.cc @@ -320,9 +320,6 @@ bool CefMainDelegate::BasicStartupComplete(int* exit_code) { const_cast(&map)->clear(); } - if (settings.single_process) - command_line->AppendSwitch(switches::kSingleProcess); - bool no_sandbox = settings.no_sandbox ? true : false; if (settings.browser_subprocess_path.length > 0) {