fixing build error

This commit is contained in:
Hari Juturu 2017-06-26 16:20:12 -07:00
parent f7539e6e8d
commit 1258240067

View file

@ -1042,7 +1042,12 @@ void App::EnableMixedSandbox(mate::Arguments* args) {
using CharType = base::CommandLine::CharType;
auto argv = command_line->argv();
StringVector modified_command_line;
const CharType* kNoSandboxArg = L"--no-sandbox";
#if defined(OS_WIN)
const CharType* kNoSandboxArg = L"--no-sandbox";
#else
const CharType* kNoSandboxArg = "--no-sandbox";
#endif
for (const StringType& arg : argv) {
if (arg.compare(kNoSandboxArg) != 0)
modified_command_line.push_back(arg);