2021-09-27 12:36:08 +02:00
|
|
|
diff --git base/command_line.cc base/command_line.cc
|
2024-04-23 22:06:00 +02:00
|
|
|
index 3596432cb48b3..b7846f07f7b1d 100644
|
2021-09-27 12:36:08 +02:00
|
|
|
--- base/command_line.cc
|
|
|
|
+++ base/command_line.cc
|
2024-04-23 22:06:00 +02:00
|
|
|
@@ -384,11 +384,10 @@ void CommandLine::AppendSwitchNative(std::string_view switch_string,
|
2023-04-04 20:00:13 +02:00
|
|
|
#if BUILDFLAG(ENABLE_COMMANDLINE_SEQUENCE_CHECKS)
|
|
|
|
sequence_checker_.Check();
|
|
|
|
#endif
|
2022-01-25 21:26:51 +01:00
|
|
|
-#if BUILDFLAG(IS_WIN)
|
2021-09-27 12:36:08 +02:00
|
|
|
const std::string switch_key = ToLowerASCII(switch_string);
|
2022-01-25 21:26:51 +01:00
|
|
|
+#if BUILDFLAG(IS_WIN)
|
2021-09-27 12:36:08 +02:00
|
|
|
StringType combined_switch_string(UTF8ToWide(switch_key));
|
2022-01-25 21:26:51 +01:00
|
|
|
#elif BUILDFLAG(IS_POSIX) || BUILDFLAG(IS_FUCHSIA)
|
2024-04-23 22:06:00 +02:00
|
|
|
- std::string_view switch_key = switch_string;
|
2021-09-27 12:36:08 +02:00
|
|
|
StringType combined_switch_string(switch_key);
|
|
|
|
#endif
|
|
|
|
size_t prefix_length = GetSwitchPrefixLength(combined_switch_string);
|