I'm looking to pass some custom command-line arguments (arbitrary, non-chrome-switches) to my CEF App and then access them in the Renderer process on Win OS.
My plan was to use
- Code: Select all
CefCommandLine::GetGlobalCommandLine();
however it seams that CefCommandLine only cares for the predefined chrome switches and ignores other arguments. I pass the argument (confirmed with Process Explorer) but then debugging Browser process and looking into CefCommandLine instance contents I find no information about my argument. I can only see the predefined chrome switches there.
What's the correct approach here?
Thank you and regards,
Pirs01
EDIT:
Looks like my mistake. I guess I was looking at it too early right after creating Browser. Now tried having a look when in CefDisplayHandler::OnTitleChange and it seams to be in order.