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;