Hi! In our application we are trying to prevent users from command line parameters. In the file command_line_impl.cc we added #if !defined in the following way:
- Code: Select all
CefRefPtr<CefCommandLine> CefCommandLine::GetGlobalCommandLine() {
// Uses a singleton reference object.
static CefRefPtr<CefCommandLineImpl> commandLinePtr;
#if !defined(NO_CMD_LINE)
if (!commandLinePtr.get()) {
base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
if (command_line)
commandLinePtr = new CefCommandLineImpl(command_line, false, true);
}
#error "NO_CMD_LINE not defined"
#endif
return commandLinePtr.get();
}
and we added NO_CMD_LINE to defines of libcef_static in cef.gyp. Python code treats cef.gyp and ninja builds the project OK, error "NO_CMD_LINE not defined" does not appear. So, we expected that command line parameters are switched of.
However command line parameters like --no-sandbox still influence the behavior of the application, we caught it in the renderer process. What we missed? Thanks, Levi