From b639b6b61ea75e10c16617daee3664bb1d4e8d94 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Sat, 4 May 2024 23:49:05 +0800 Subject: [PATCH] fix --- src/net/tools/naive/naive_command_line.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/net/tools/naive/naive_command_line.cc b/src/net/tools/naive/naive_command_line.cc index 54569ec5aa..9b7d78381b 100644 --- a/src/net/tools/naive/naive_command_line.cc +++ b/src/net/tools/naive/naive_command_line.cc @@ -63,7 +63,11 @@ base::Value::Dict GetSwitchesAsValue(const base::CommandLine& cmdline) { } dict.Set(key, std::move(list)); } else { +#if BUILDFLAG(IS_WIN) + dict.Set(key, base::AsStringPiece16(value)); +#else dict.Set(key, value); +#endif } } return dict;