Commit 174d9adb authored by Gustavo Noronha's avatar Gustavo Noronha

Check if command line has been initialized and do if not

parent b9127dd8
...@@ -379,6 +379,10 @@ bool CefContext::Initialize(const CefMainArgs& args, ...@@ -379,6 +379,10 @@ bool CefContext::Initialize(const CefMainArgs& args,
#endif #endif
auto command_line = base::CommandLine::ForCurrentProcess(); auto command_line = base::CommandLine::ForCurrentProcess();
if (!command_line) {
base::CommandLine::Init(args.argc, args.argv);
command_line = base::CommandLine::ForCurrentProcess();
}
#if defined(USE_AURA) #if defined(USE_AURA)
if (command_line->HasSwitch("mus")) if (command_line->HasSwitch("mus"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment