chore: remove unused commandLineSwitches flag (#49993)

chore: remove unused commandLineSwitches flag
This commit is contained in:
Shelley Vohr
2026-03-02 16:30:13 +01:00
committed by GitHub
parent 07dcba74b3
commit 6dcec79bba
2 changed files with 0 additions and 8 deletions

View File

@@ -135,7 +135,6 @@ void WebContentsPreferences::Clear() {
default_encoding_ = std::nullopt;
is_webview_ = false;
custom_args_.clear();
custom_switches_.clear();
enable_blink_features_ = std::nullopt;
disable_blink_features_ = std::nullopt;
disable_popups_ = false;
@@ -204,7 +203,6 @@ void WebContentsPreferences::SetFromDictionary(
if (web_preferences.Get("defaultEncoding", &encoding))
default_encoding_ = encoding;
web_preferences.Get(options::kCustomArgs, &custom_args_);
web_preferences.Get("commandLineSwitches", &custom_switches_);
web_preferences.Get("disablePopups", &disable_popups_);
web_preferences.Get("disableDialogs", &disable_dialogs_);
web_preferences.Get("safeDialogs", &safe_dialogs_);
@@ -338,11 +336,6 @@ void WebContentsPreferences::AppendCommandLineSwitches(
if (!arg.empty())
command_line->AppendArg(arg);
// Custom command line switches.
for (const auto& arg : custom_switches_)
if (!arg.empty())
command_line->AppendSwitch(arg);
if (enable_blink_features_)
command_line->AppendSwitchASCII(::switches::kEnableBlinkFeatures,
*enable_blink_features_);

View File

@@ -122,7 +122,6 @@ class WebContentsPreferences
std::optional<std::string> default_encoding_;
bool is_webview_;
std::vector<std::string> custom_args_;
std::vector<std::string> custom_switches_;
std::optional<std::string> enable_blink_features_;
std::optional<std::string> disable_blink_features_;
bool disable_popups_;