Linux/Mac: Fix handling of command-line arguments (issue #2208)

This commit is contained in:
Marshall Greenblatt 2017-07-18 13:57:04 -07:00
parent 796c7b6c59
commit 1aea3a06a5
1 changed files with 5 additions and 0 deletions

View File

@ -379,6 +379,11 @@ bool CefContext::Initialize(const CefMainArgs& args,
sm_main_params_.reset(
new service_manager::MainParams(sm_main_delegate_.get()));
#if defined(OS_POSIX) && !defined(OS_ANDROID)
sm_main_params_->argc = params.argc;
sm_main_params_->argv = params.argv;
#endif
exit_code = service_manager::MainInitialize(*sm_main_params_);
DCHECK_LT(exit_code, 0);
if (exit_code >= 0)